# HG changeset patch # User Sam Lantinga # Date 1227940173 0 # Node ID 7af8c4ad427e8f8194eb5852a236c4b6235882ff # Parent 8fe261aae1bbe25c4ff25f20d3b841a1a5abc9c4 Fixed crash in glTexSubImage2D() with testoverlay on Mac OS X. diff -r 8fe261aae1bb -r 7af8c4ad427e src/video/SDL_renderer_gl.c --- 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