Merge pull request #409 from Immediate-Mode-UI/sdl_renderer-fix-cast

Fix incorrect cast on SDL_RenderGeometryRaw()
This commit is contained in:
Rob Loach 2022-02-06 15:29:57 -05:00 committed by GitHub
commit 429eaf3892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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