mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: automatically move (some) referenced objects to heap (#9873)
This commit is contained in:
@ -302,7 +302,7 @@ fn draw_cube_glsl(app App) {
|
||||
0 // padding bytes , see "fs_params" struct paddings in rt_glsl.h
|
||||
]!
|
||||
fs_uniforms_range := C.sg_range{
|
||||
ptr: &tmp_fs_params
|
||||
ptr: unsafe { &tmp_fs_params }
|
||||
size: size_t(sizeof(tmp_fs_params))
|
||||
}
|
||||
gfx.apply_uniforms(C.SG_SHADERSTAGE_FS, C.SLOT_fs_params, &fs_uniforms_range)
|
||||
|
Reference in New Issue
Block a user