[Mesa-dev] [PATCH] mesa: Add forgotten GL_RG_INTEGER format in unpack_color_span_float.

Kenneth Graunke kenneth at whitecape.org
Wed Jan 4 16:06:31 PST 2012


Fixes piglit test spec/EXT_texture_integer/texture_integer_glsl130 on
Sandybridge.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/main/pack.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
index 2933ff6..21096f9 100644
--- a/src/mesa/main/pack.c
+++ b/src/mesa/main/pack.c
@@ -3778,6 +3778,7 @@ _mesa_unpack_color_span_float( struct gl_context *ctx,
           srcFormat == GL_GREEN_INTEGER_EXT ||
           srcFormat == GL_BLUE_INTEGER_EXT ||
           srcFormat == GL_ALPHA_INTEGER_EXT ||
+          srcFormat == GL_RG_INTEGER ||
           srcFormat == GL_RGB_INTEGER_EXT ||
           srcFormat == GL_RGBA_INTEGER_EXT ||
           srcFormat == GL_BGR_INTEGER_EXT ||
-- 
1.7.8.1



More information about the mesa-dev mailing list