summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wimmel_gl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/wimmel_gl.c b/wimmel_gl.c
index 26e20af..6610a5b 100644
--- a/wimmel_gl.c
+++ b/wimmel_gl.c
@@ -297,8 +297,7 @@ main(int argc, char **argv)
draw();
- glPixelStorei(GL_PACK_ALIGNMENT, 2);
-
+ glPixelStorei(GL_PACK_ALIGNMENT, 1);
stride = width * 4;
buffer = malloc(stride * height);
glReadPixels(0, 0, width, height,