summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2008-11-29 06:29:33 +0000
committerSam Lantinga <slouken@libsdl.org>2008-11-29 06:29:33 +0000
commit09a0bb1e39ecac96be65e3309ce465f9cc7af58e (patch)
tree80c5a2578e177a4bab72851c60afb6f7bf10a351 /src
parent3b8ca814f61afec9be94075ba7c21685fdebe559 (diff)
Fixed crash in glTexSubImage2D() with testoverlay on Mac OS X.
Diffstat (limited to 'src')
-rw-r--r--src/video/SDL_renderer_gl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/video/SDL_renderer_gl.c b/src/video/SDL_renderer_gl.c
index b6dc48800e..d299fe0260 100644
--- a/src/video/SDL_renderer_gl.c
+++ b/src/video/SDL_renderer_gl.c
@@ -689,8 +689,6 @@ SetupTextureUpdate(GL_RenderData * renderdata, SDL_Texture * texture,
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