]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
fix memory alignment issue when saving odd-width screenshots (set GL_PACK_ALIGNMENT...
[xonotic/darkplaces.git] / gl_textures.c
index 97e0aa948fd964b351b73f348d0126fea77cdfac..e473f6fdad0f05d17127ee54ca65bd5fa165e920 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);