Whoops, we need this for subrect updates (testsprite)
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Nov 2008 15:32:14 +0000
changeset 2808368410632f2d
parent 2807 365fe1a2aad5
child 2809 7e257c3a3bf0
Whoops, we need this for subrect updates (testsprite)
src/video/SDL_renderer_gl.c
     1.1 --- a/src/video/SDL_renderer_gl.c	Sat Nov 29 11:26:01 2008 +0000
     1.2 +++ b/src/video/SDL_renderer_gl.c	Sat Nov 29 15:32:14 2008 +0000
     1.3 @@ -689,6 +689,8 @@
     1.4          renderdata->glPixelStorei(GL_UNPACK_LSB_FIRST, 0);
     1.5      }
     1.6      renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
     1.7 +    renderdata->glPixelStorei(GL_UNPACK_ROW_LENGTH,
     1.8 +                              pitch / SDL_BYTESPERPIXEL(texture->format));
     1.9  }
    1.10  
    1.11  static int