# HG changeset patch # User Sam Lantinga # Date 1227972734 0 # Node ID 368410632f2dc3593fc4f44ec50882eda75e2c77 # Parent 365fe1a2aad507357a2dd5f8a70d2575b81f3f89 Whoops, we need this for subrect updates (testsprite) diff -r 365fe1a2aad5 -r 368410632f2d src/video/SDL_renderer_gl.c --- a/src/video/SDL_renderer_gl.c Sat Nov 29 11:26:01 2008 +0000 +++ b/src/video/SDL_renderer_gl.c Sat Nov 29 15:32:14 2008 +0000 @@ -689,6 +689,8 @@ 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