From: Ian Romanick Date: Thu, 2 Feb 2012 05:46:31 +0000 (-0700) Subject: mesa: Fix copy-and-paste error in _mesa_pack_rgba_span_float X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e8f8cb383320b83ba5d85c27808ac2d841834e6;p=mesa.git mesa: Fix copy-and-paste error in _mesa_pack_rgba_span_float GL_RG_INTEGER only has two components, not three. I'll be surprised if anyone ever tries to glReadPixels(..., GL_SHORT, GL_RG_INTEGER, ...). This was found by inspection. NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index d07e2aaa87a..41485a1bf06 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -1175,9 +1175,8 @@ _mesa_pack_rgba_span_float(struct gl_context *ctx, GLuint n, GLfloat rgba[][4], break; case GL_RG_INTEGER: for (i=0;i