mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-22 18:51:12 +00:00
Fixed wrong pixel format if reading pixels from OpenGL renderer.
This commit is contained in:
parent
f8aa4291ca
commit
67bf5cac1a
|
@ -1422,7 +1422,7 @@ GL_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
|
||||||
Uint32 pixel_format, void * pixels, int pitch)
|
Uint32 pixel_format, void * pixels, int pitch)
|
||||||
{
|
{
|
||||||
GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
|
GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
|
||||||
Uint32 temp_format = renderer->target ? renderer->target->format : SDL_PIXELFORMAT_ABGR8888;
|
Uint32 temp_format = renderer->target ? renderer->target->format : SDL_PIXELFORMAT_ARGB8888;
|
||||||
void *temp_pixels;
|
void *temp_pixels;
|
||||||
int temp_pitch;
|
int temp_pitch;
|
||||||
GLint internalFormat;
|
GLint internalFormat;
|
||||||
|
|
Loading…
Reference in a new issue