Fix incorrect cast on SDL_RenderGeometryRaw()

Fixes #405
This commit is contained in:
Rob Loach 2022-02-06 00:43:54 -05:00
parent d13cc80b6e
commit 6686ab1dd5
No known key found for this signature in database
GPG Key ID: 627C60834A74A21A

View File

@ -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);