[Piglit] [PATCH] glx-multithread-makecurrent: Fix expected values if the visual has alpha.

Eric Anholt eric at anholt.net
Mon Jan 21 21:12:20 PST 2013


We don't ask for alpha, but if we got alpha bits anyway we would probe
unexpected values.
---
 tests/glx/glx-multithread-makecurrent-1.c |    4 ++--
 tests/glx/glx-multithread-makecurrent-2.c |    2 +-
 tests/glx/glx-multithread-makecurrent-3.c |    2 +-
 tests/glx/glx-multithread-makecurrent-4.c |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/glx/glx-multithread-makecurrent-1.c b/tests/glx/glx-multithread-makecurrent-1.c
index 899d607..a2e291c 100644
--- a/tests/glx/glx-multithread-makecurrent-1.c
+++ b/tests/glx/glx-multithread-makecurrent-1.c
@@ -97,8 +97,8 @@ enum piglit_result
 draw(Display *dpy)
 {
 	GLboolean pass = GL_TRUE;
-	float green[] = {0.0, 1.0, 0.0, 1.0};
-	float blue[] = {0.0, 0.0, 1.0, 1.0};
+	float green[] = {0.0, 1.0, 0.0, 0.0};
+	float blue[] = {0.0, 0.0, 1.0, 0.0};
 	float gray[] = {0.5, 0.5, 0.5, 1.0};
 	pthread_t thread1, thread2;
 	void *retval;
diff --git a/tests/glx/glx-multithread-makecurrent-2.c b/tests/glx/glx-multithread-makecurrent-2.c
index 8f1aa9b..2678108 100644
--- a/tests/glx/glx-multithread-makecurrent-2.c
+++ b/tests/glx/glx-multithread-makecurrent-2.c
@@ -100,7 +100,7 @@ enum piglit_result
 draw(Display *dpy)
 {
 	GLboolean pass = GL_TRUE;
-	float green[] = {0.0, 1.0, 0.0, 1.0};
+	float green[] = {0.0, 1.0, 0.0, 0.0};
 	float gray[] = {0.5, 0.5, 0.5, 1.0};
 	pthread_t thread1, thread2;
 	void *retval;
diff --git a/tests/glx/glx-multithread-makecurrent-3.c b/tests/glx/glx-multithread-makecurrent-3.c
index cf6cb16..ca6c08e 100644
--- a/tests/glx/glx-multithread-makecurrent-3.c
+++ b/tests/glx/glx-multithread-makecurrent-3.c
@@ -92,7 +92,7 @@ enum piglit_result
 draw(Display *dpy)
 {
 	GLboolean pass = GL_TRUE;
-	float green[] = {0.0, 1.0, 0.0, 1.0};
+	float green[] = {0.0, 1.0, 0.0, 0.0};
 	float gray[] = {0.5, 0.5, 0.5, 1.0};
 	pthread_t thread1, thread2;
 	void *retval;
diff --git a/tests/glx/glx-multithread-makecurrent-4.c b/tests/glx/glx-multithread-makecurrent-4.c
index bd48f02..4300092 100644
--- a/tests/glx/glx-multithread-makecurrent-4.c
+++ b/tests/glx/glx-multithread-makecurrent-4.c
@@ -92,7 +92,7 @@ enum piglit_result
 draw(Display *dpy)
 {
 	GLboolean pass = GL_TRUE;
-	float green[] = {0.0, 1.0, 0.0, 1.0};
+	float green[] = {0.0, 1.0, 0.0, 0.0};
 	float gray[] = {0.5, 0.5, 0.5, 1.0};
 	pthread_t thread1, thread2;
 	void *retval;
-- 
1.7.10.4



More information about the Piglit mailing list