Fixed crash in glTexSubImage2D() with testoverlay on Mac OS X.

This commit is contained in:
Sam Lantinga 2008-11-29 06:29:33 +00:00
parent 3b8ca814f6
commit 09a0bb1e39

View File

@ -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