Fixed typo in GL_UpdateClipRect
authorGabriel Jacobo <gabomdq@gmail.com>
Fri, 10 May 2013 10:33:15 -0300
changeset 7161 1619292eec30
parent 7160 bfb5f8f4f006
child 7162 f2fb5a030227
Fixed typo in GL_UpdateClipRect
src/render/opengl/SDL_render_gl.c
--- a/src/render/opengl/SDL_render_gl.c	Fri May 10 10:31:01 2013 -0300
+++ b/src/render/opengl/SDL_render_gl.c	Fri May 10 10:33:15 2013 -0300
@@ -794,7 +794,7 @@
 
     if (!SDL_RectEmpty(rect)) {
         data->glEnable(GL_SCISSOR_TEST);
-        data->glScissor(rect->x, rect->h - rect->y, rect->x, rect->y);
+        data->glScissor(rect->x, rect->h - rect->y, rect->w, rect->h);
     } else {
         data->glDisable(GL_SCISSOR_TEST);
     }