From 6686ab1dd514942bfd671eebcb78fe0427f79b02 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sun, 6 Feb 2022 00:43:54 -0500 Subject: [PATCH] Fix incorrect cast on SDL_RenderGeometryRaw() Fixes #405 --- demo/sdl_renderer/nuklear_sdl_renderer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/sdl_renderer/nuklear_sdl_renderer.h b/demo/sdl_renderer/nuklear_sdl_renderer.h index 2107df1..cac4d79 100644 --- a/demo/sdl_renderer/nuklear_sdl_renderer.h +++ b/demo/sdl_renderer/nuklear_sdl_renderer.h @@ -135,9 +135,9 @@ nk_sdl_render(enum nk_anti_aliasing AA) SDL_RenderGeometryRaw(sdl.renderer, (SDL_Texture *)cmd->texture.ptr, - (const void*)((const nk_byte*)vertices + vp), vs, - (const void*)((const nk_byte*)vertices + vc), vs, - (const void*)((const nk_byte*)vertices + vt), vs, + (const float*)((const nk_byte*)vertices + vp), vs, + (const SDL_Color*)((const nk_byte*)vertices + vc), vs, + (const float*)((const nk_byte*)vertices + vt), vs, (vbuf.needed / vs), (void *) offset, cmd->elem_count, 2);