Fixed wrong pixel format if reading pixels from OpenGL renderer.

This commit is contained in:
Philipp Wiesemann 2016-10-02 22:32:35 +02:00
parent f8aa4291ca
commit 67bf5cac1a
1 changed files with 1 additions and 1 deletions

View File

@ -1422,7 +1422,7 @@ GL_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
Uint32 pixel_format, void * pixels, int pitch)
{
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;
int temp_pitch;
GLint internalFormat;