From 82abdf209a2fb5b95b2bae80045aecc61202b13c Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Thu, 30 Apr 2015 23:35:20 -0700 Subject: mesa: Handle integer formats in need_rgb_to_luminance_conversion() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anuj Phogat Cc: Reviewed-by: Tapani Pälli Reviewed-by: Iago Toral Quiroga --- src/mesa/main/readpix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c index df46f8361b9..9166a50c22e 100644 --- a/src/mesa/main/readpix.c +++ b/src/mesa/main/readpix.c @@ -54,7 +54,10 @@ need_rgb_to_luminance_conversion(mesa_format texFormat, GLenum format) return (baseTexFormat == GL_RG || baseTexFormat == GL_RGB || baseTexFormat == GL_RGBA) && - (format == GL_LUMINANCE || format == GL_LUMINANCE_ALPHA); + (format == GL_LUMINANCE || + format == GL_LUMINANCE_ALPHA || + format == GL_LUMINANCE_INTEGER_EXT || + format == GL_LUMINANCE_ALPHA_INTEGER_EXT); } -- cgit v1.2.3