Fixed crash in glTexSubImage2D() with testoverlay on Mac OS X.
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Nov 2008 06:29:33 +0000
changeset 28047af8c4ad427e
parent 2803 8fe261aae1bb
child 2805 2ed5ff5373d8
Fixed crash in glTexSubImage2D() with testoverlay on Mac OS X.
src/video/SDL_renderer_gl.c
     1.1 --- a/src/video/SDL_renderer_gl.c	Sat Nov 29 06:27:26 2008 +0000
     1.2 +++ b/src/video/SDL_renderer_gl.c	Sat Nov 29 06:29:33 2008 +0000
     1.3 @@ -689,8 +689,6 @@
     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