mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: add examples/gg/random.v demonstrating how to stream images/pixels
This commit is contained in:
@@ -241,7 +241,9 @@ fn gg_init_sokol_window(user_data voidptr) {
|
||||
}
|
||||
|
||||
for i in 0 .. g.image_cache.len {
|
||||
g.image_cache[i].init_sokol_image()
|
||||
if g.image_cache[i].simg.id == 0 {
|
||||
g.image_cache[i].init_sokol_image()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user