From b47e63dd8838ae8f2a320400eae7107836d1a345 Mon Sep 17 00:00:00 2001
From: Martin Andersson <g02maran@gmail.com>
Date: Fri, 9 Aug 2013 11:50:41 +0200
Subject: [PATCH] texture-integer: fix alpha issue with GL_RGB_INTEGER_EXT
 formats

The expected alpha was set to zero instead of the random alpha value.

This worked for all random alpha values greater than zero, because for
those values the resulting alpha was zero. Matching the, incorrect,
expected alpha value of zero.
---
 tests/spec/gl-3.0/texture-integer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/spec/gl-3.0/texture-integer.c b/tests/spec/gl-3.0/texture-integer.c
index f2a5692..e472a92 100644
--- a/tests/spec/gl-3.0/texture-integer.c
+++ b/tests/spec/gl-3.0/texture-integer.c
@@ -287,7 +287,7 @@ test_format(const struct format_info *info)
 		/* nothing */
 		break;
 	case GL_RGB_INTEGER_EXT:
-		expected[3] = 0.0;
+		value[3] = 0.0;
 		break;
 	case GL_ALPHA_INTEGER_EXT:
 		expected[0] = expected[1] = expected[2] = 0.0;
-- 
1.8.3.4

