From d4a296caaabfe608fc2b9b3e3c7188249cc2b402 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 21 Oct 2010 16:38:18 -0600 Subject: mesa: add missing cases for packing red/green images --- src/mesa/main/image.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'src/mesa/main/image.c') diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 2c3af332c0..4b5d7dadc9 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -2107,6 +2107,12 @@ _mesa_pack_rgba_span_float(struct gl_context *ctx, GLuint n, GLfloat rgba[][4], dst[i*2+1] = FLOAT_TO_UBYTE(rgba[i][ACOMP]); } break; + case GL_RG: + for (i=0;i