Skip to content

Commit ed4150f

Browse files
fix: replace nk_zero with SDL_zerop
Fixes issue mentioned in: Immediate-Mode-UI#779 (comment)
1 parent 07906dc commit ed4150f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/sdl3/nuklear_sdl3_renderer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ nk_sdl_init(SDL_Window *win, SDL_Renderer *renderer)
227227
NK_ASSERT(renderer);
228228
sdl = SDL_malloc(sizeof(struct nk_sdl));
229229
NK_ASSERT(sdl);
230-
nk_zero(sdl, sizeof(struct nk_sdl));
230+
SDL_zerop(sdl);
231231
sdl->win = win;
232232
sdl->renderer = renderer;
233233
nk_init_default(&sdl->ctx, 0);

0 commit comments

Comments
 (0)