[Piglit] [PATCH 3/3] draw-pixels: use default window size, for Windows

Brian Paul brianp at vmware.com
Fri Apr 5 15:19:59 PDT 2013


And set the pixel unpack alignment to 1 so that we don't fail if
the window width isn't a multiple of four.
---
 tests/general/draw-pixels.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/general/draw-pixels.c b/tests/general/draw-pixels.c
index 26fd121..33a1eb0 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++) {
-- 
1.7.3.4



More information about the Piglit mailing list