src/render/opengl/SDL_render_gl.c
changeset 7420 fe82b639c4d6
parent 7239 04dda95ba22c
child 7486 c074c0b23916
--- a/src/render/opengl/SDL_render_gl.c	Fri Jul 12 00:43:16 2013 -0700
+++ b/src/render/opengl/SDL_render_gl.c	Fri Jul 12 00:55:04 2013 -0700
@@ -1233,7 +1233,6 @@
                     Uint32 pixel_format, void * pixels, int pitch)
 {
     GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
-    SDL_Window *window = renderer->window;
     Uint32 temp_format = SDL_PIXELFORMAT_ARGB8888;
     void *temp_pixels;
     int temp_pitch;
@@ -1253,7 +1252,7 @@
 
     convert_format(data, temp_format, &internalFormat, &format, &type);
 
-    SDL_GetWindowSize(window, &w, &h);
+    SDL_GetRendererOutputSize(renderer, &w, &h);
 
     data->glPixelStorei(GL_PACK_ALIGNMENT, 1);
     data->glPixelStorei(GL_PACK_ROW_LENGTH,