Keep -vet happy
This commit is contained in:
1 parent
866a9fdf19
commit
abca3ceac8
3 files changed
+3
-5
No files matched your search
Vendored
+2
-2
@@ -916,8 +916,8 @@ CreateImageMem :: proc(ctx: ^Context, data: []byte, imageFlags: ImageFlags) -> i
|
||||
return 0
|
||||
}
|
||||
|
||||
data := img[:int(w) * int(h) * int(n)]
|
||||
image := CreateImageRGBA(ctx, int(w), int(h), imageFlags, data)
|
||||
pixel_data := img[:int(w) * int(h) * int(n)]
|
||||
image := CreateImageRGBA(ctx, int(w), int(h), imageFlags, pixel_data)
|
||||
stbi.image_free(img)
|
||||
return image
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user