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

examples: use vmemset instead of C.memset (#13104)

This commit is contained in:
Larpon
2022-01-09 15:08:11 +01:00
committed by GitHub
parent e2a0046849
commit b44b8c472d
8 changed files with 26 additions and 26 deletions

View File

@ -316,7 +316,7 @@ fn app_init(mut app App) {
// 3d pipeline
mut pipdesc := gfx.PipelineDesc{}
unsafe { C.memset(&pipdesc, 0, sizeof(pipdesc)) }
unsafe { vmemset(&pipdesc, 0, int(sizeof(pipdesc))) }
color_state := gfx.ColorState{
blend: gfx.BlendState{