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.
(cherry picked from r3570 by parasti)
git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3572
78b8d119-cf0a-0410-b17c-
f493084dd1d7
GL_SEPARATE_SPECULAR_COLOR);
#endif
+ glPixelStorei(GL_PACK_ALIGNMENT, 1);
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glDepthFunc(GL_LEQUAL);