[Mesa-dev] [PATCH 0.5/3] mesa: Handle integer formats in need_rgb_to_luminance_conversion()
Iago Toral
itoral at igalia.com
Mon Jun 15 07:30:39 PDT 2015
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
On Thu, 2015-06-11 at 09:58 -0700, Anuj Phogat wrote:
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
> src/mesa/main/readpix.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
> index df46f83..9166a50 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);
> }
>
>
More information about the mesa-dev
mailing list