mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: do full struct initialisation for V structs, fixes invalid data from map[string]Struct{}['unknown']
(#9878)
This commit is contained in:
@@ -189,7 +189,9 @@ fn gg_init_sokol_window(user_data voidptr) {
|
||||
}
|
||||
}
|
||||
//
|
||||
mut pipdesc := C.sg_pipeline_desc{}
|
||||
mut pipdesc := C.sg_pipeline_desc{
|
||||
label: c'alpha_image'
|
||||
}
|
||||
unsafe { C.memset(&pipdesc, 0, sizeof(pipdesc)) }
|
||||
|
||||
color_state := C.sg_color_state{
|
||||
|
Reference in New Issue
Block a user