diff options
author | Anuj Phogat <[email protected]> | 2015-04-30 23:35:20 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2015-06-15 09:07:28 -0700 |
commit | 82abdf209a2fb5b95b2bae80045aecc61202b13c (patch) | |
tree | 1f1a040f7f83e7e95156ca6eed558127c48c0490 /src/mesa/main/readpix.c | |
parent | 6c14b66e40d34104c841ee6dfaeb65617e47be80 (diff) |
mesa: Handle integer formats in need_rgb_to_luminance_conversion()
Signed-off-by: Anuj Phogat <[email protected]>
Cc: <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa/main/readpix.c')
-rw-r--r-- | src/mesa/main/readpix.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |