src/render/opengles2/SDL_render_gles2.c
changeset 7420 fe82b639c4d6
parent 7239 04dda95ba22c
child 7502 6ff02ff3cf06
--- a/src/render/opengles2/SDL_render_gles2.c	Fri Jul 12 00:43:16 2013 -0700
+++ b/src/render/opengles2/SDL_render_gles2.c	Fri Jul 12 00:55:04 2013 -0700
@@ -1508,7 +1508,6 @@
                     Uint32 pixel_format, void * pixels, int pitch)
 {
     GLES2_DriverContext *rdata = (GLES2_DriverContext *)renderer->driverdata;
-    SDL_Window *window = renderer->window;
     Uint32 temp_format = SDL_PIXELFORMAT_ABGR8888;
     void *temp_pixels;
     int temp_pitch;
@@ -1524,7 +1523,7 @@
         return SDL_OutOfMemory();
     }
 
-    SDL_GetWindowSize(window, &w, &h);
+    SDL_GetRendererOutputSize(renderer, &w, &h);
 
     rdata->glPixelStorei(GL_PACK_ALIGNMENT, 1);