On Thu, Jun 11, 2015 at 10:05 AM, Tapani Pälli <[email protected]> wrote:
> Reviewed-by: Tapani Pälli <[email protected]>
>
>
> On 06/11/2015 07:58 PM, Anuj Phogat wrote:
>>
>> Signed-off-by: Anuj Phogat <[email protected]>
>> ---
>>   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);
>>   }
>>
>
>
A note to myself:
I would like to change the signature of this function and just pass the
base formats of src, dst. I will do that later in a separate patch.
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to