Fixes a few problems with non-multiple of 4 wide textures or
framebuffer, namely, skewed/corrupted textures in one case and memory
corruption when taking screenshots in the other.
git-svn-id: https://s.snth.net/svn/neverball/trunk@3570
78b8d119-cf0a-0410-b17c-
f493084dd1d7
GL_SEPARATE_SPECULAR_COLOR);
glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);
GL_SEPARATE_SPECULAR_COLOR);
glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1);
+ glPixelStorei(GL_PACK_ALIGNMENT, 1);
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glDepthFunc(GL_LEQUAL);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glDepthFunc(GL_LEQUAL);