mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
sokol: update to floooh/sokol@c602d83 (#9607)
This commit is contained in:
parent
9541eb816b
commit
8caabf0e9e
29 changed files with 4825 additions and 2965 deletions
|
@ -149,9 +149,9 @@ pub fn (mut img Image) init_sokol_image() &Image {
|
|||
label: &byte(0)
|
||||
d3d11_texture: 0
|
||||
}
|
||||
img_desc.content.subimage[0][0] = C.sg_subimage_content{
|
||||
img_desc.data.subimage[0][0] = C.sg_range{
|
||||
ptr: img.data
|
||||
size: img.nr_channels * img.width * img.height
|
||||
size: size_t(img.nr_channels * img.width * img.height)
|
||||
}
|
||||
img.simg = C.sg_make_image(&img_desc)
|
||||
img.simg_ok = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue