Fixed bug #5087: SDL_RenderGeometryRaw() passes colors as int* instead of SDL_Color*

This commit is contained in:
Sylvain 2021-12-14 10:31:55 +01:00
parent 323ba6c008
commit b7885abc44
No known key found for this signature in database
GPG key ID: 5F87E02E5BC0939E
3 changed files with 29 additions and 23 deletions

View file

@ -1645,7 +1645,7 @@ extern DECLSPEC int SDLCALL SDL_RenderGeometry(SDL_Renderer *renderer,
extern DECLSPEC int SDLCALL SDL_RenderGeometryRaw(SDL_Renderer *renderer,
SDL_Texture *texture,
const float *xy, int xy_stride,
const int *color, int color_stride,
const SDL_Color *color, int color_stride,
const float *uv, int uv_stride,
int num_vertices,
const void *indices, int num_indices, int size_indices);