summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-15 13:00:10 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-15 13:00:10 +0100
commit3281cef929b1afb58c8faf4ee9ffd865e1580513 (patch)
treeb55609cc08b3a393fce7b5c6159874d368ca86d5
parent3f252ed3febad0910b204afbb8bbbf3e524ec580 (diff)
downloadcv-3281cef929b1afb58c8faf4ee9ffd865e1580513.tar.gz
cv-3281cef929b1afb58c8faf4ee9ffd865e1580513.tar.bz2
cv-3281cef929b1afb58c8faf4ee9ffd865e1580513.zip
wimmel_gl: Use byte-alignment for readpixels
-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,