1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: simplify gg/rectangles.v

This commit is contained in:
Alexander Medvednikov
2020-08-02 17:01:07 +02:00
parent c6ae322f85
commit 79b70006e6
2 changed files with 10 additions and 15 deletions

View File

@@ -283,8 +283,7 @@ pub fn create_image2(file string) Image {
ptr: img.data
size: img.nr_channels * img.width * img.height
}
the_sokol_image := C.sg_make_image(&img_desc)
img.sokol_img = the_sokol_image
img.sokol_img = C.sg_make_image(&img_desc)
return img
}