diff src/video/SDL_renderer_gl.c @ 2804:7af8c4ad427e

Fixed crash in glTexSubImage2D() with testoverlay on Mac OS X.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Nov 2008 06:29:33 +0000
parents 38dfc890ee6b
children 368410632f2d
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c	Sat Nov 29 06:27:26 2008 +0000
+++ b/src/video/SDL_renderer_gl.c	Sat Nov 29 06:29:33 2008 +0000
@@ -689,8 +689,6 @@
         renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 0);
     }
     renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
-    renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH,
-                              pitch / SDL_BYTESPERPIXEL(texture->format));
 }
 
 static int