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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 26 additions and 26 deletions

View file

@ -322,7 +322,7 @@ fn my_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{