Skip to content
Permalink
Browse files

Fixed wrong pixel format if reading pixels from OpenGL renderer.

  • Loading branch information
philippwiesemann committed Oct 2, 2016
1 parent f8aa429 commit 67bf5cac1a299975f43bc887652b8afb434b002d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/render/opengl/SDL_render_gl.c
@@ -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;

0 comments on commit 67bf5ca

Please sign in to comment.