aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-04-05 16:09:46 -0600
committerBrian Paul <brianp@vmware.com>2013-04-06 08:14:18 -0600
commitf73d92cd6aa0219c141825e178e95d4577a57d9d (patch)
tree84eec732be77db23f3a3f04e74a216203372c85c
parent156c2eab7cf025d3b5caad38dc5c899868d40d52 (diff)
downloadpiglit-f73d92cd6aa0219c141825e178e95d4577a57d9d.tar.gz
draw-pixels: use default window size, for Windows
And set the pixel unpack alignment to 1 so that we don't fail if the window width isn't a multiple of four. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
-rw-r--r--tests/general/draw-pixels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/general/draw-pixels.c b/tests/general/draw-pixels.c
index b31c23fe..96f296d6 100644
--- a/tests/general/draw-pixels.c
+++ b/tests/general/draw-pixels.c
@@ -55,8 +55,6 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
- config.window_width = 16;
- config.window_height = 16;
config.window_visual = PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGBA | PIGLIT_GL_VISUAL_ALPHA | PIGLIT_GL_VISUAL_DEPTH | PIGLIT_GL_VISUAL_STENCIL;
PIGLIT_GL_TEST_CONFIG_END
@@ -720,6 +718,8 @@ piglit_display(void)
GLfloat black[4] = {0.0, 0.0, 0.0, 1.0};
GLfloat red[4] = {1.0, 0.0, 0.0, 1.0};
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+
for (i = 0; i < ARRAY_SIZE(data_types); i++) {
for (k = 0; k < ARRAY_SIZE(pixel_ops); k++) {
for (j = 0; j < ARRAY_SIZE(pixel_formats); j++) {