From 0e52be58f05eaa5762b9a03ac860da4d9581cead Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 4 Jan 2012 16:08:20 -0800 Subject: [PATCH] mesa: Add missing GL_RG_INTEGER cases Adds two missing '|| srcFormat == GL_RG_INTEGER' in assertions and a bunch of missing pixel converions cases. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- src/mesa/main/pack.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 2933ff638fc..8f2c8fd974f 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -692,6 +692,12 @@ _mesa_pack_rgba_span_float(struct gl_context *ctx, GLuint n, GLfloat rgba[][4], dst[i] = (GLubyte) rgba[i][ACOMP]; } break; + case GL_RG_INTEGER: + for (i=0;i