fix memory alignment issue when saving odd-width screenshots (set GL_PACK_ALIGNMENT...
[xonotic/darkplaces.git] / gl_textures.c
index 97e0aa9..e473f6f 100644 (file)
@@ -452,6 +452,7 @@ static void r_textures_start(void)
        // LordHavoc: allow any alignment
        CHECKGLERROR
        qglPixelStorei(GL_UNPACK_ALIGNMENT, 1);CHECKGLERROR
+       qglPixelStorei(GL_PACK_ALIGNMENT, 1);CHECKGLERROR
 
        texturemempool = Mem_AllocPool("texture management", 0, NULL);