From: Brian Paul Date: Thu, 21 Oct 2010 22:38:18 +0000 (-0600) Subject: mesa: add missing cases for packing red/green images X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4a296caaabfe608fc2b9b3e3c7188249cc2b402;p=mesa.git mesa: add missing cases for packing red/green images --- diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 2c3af332c0c..4b5d7dadc94 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