mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-23 04:01:09 +00:00
Fixed incorrect color in the OpenGL driver
This commit is contained in:
parent
3cdda8f8ab
commit
1a73c45a08
|
@ -1026,7 +1026,8 @@ GL_QueueGeometry(SDL_Renderer *renderer, SDL_RenderCommand *cmd, SDL_Texture *te
|
||||||
|
|
||||||
/* Not really a float, but it is still 4 bytes and will be cast to the
|
/* Not really a float, but it is still 4 bytes and will be cast to the
|
||||||
right type in the graphics driver. */
|
right type in the graphics driver. */
|
||||||
*(verts++) = *(float*)((char*)color + j * color_stride);
|
SDL_memcpy(verts, ((char*)color + j * color_stride), sizeof(*color));
|
||||||
|
++verts;
|
||||||
|
|
||||||
if (texture) {
|
if (texture) {
|
||||||
float *uv_ = (float *)((char*)uv + j * uv_stride);
|
float *uv_ = (float *)((char*)uv + j * uv_stride);
|
||||||
|
|
Loading…
Reference in a new issue