Skip to content

Commit

Permalink
Fixed wrong pixel format if reading pixels from OpenGL renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Oct 2, 2016
1 parent f8aa429 commit 67bf5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/opengl/SDL_render_gl.c
Expand Up @@ -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;
Expand Down

0 comments on commit 67bf5ca

Please sign in to comment.