[Mesa-dev] [PATCH 1/6] mesa: handle HALF_FLOAT like FLOAT in get_tex_rgba

Marek Olšák maraeo at gmail.com
Thu Mar 14 15:37:11 PDT 2013


On Thu, Mar 14, 2013 at 8:26 PM, Brian Paul <brianp at vmware.com> wrote:
> On 03/14/2013 12:45 PM, Marek Olšák wrote:
>>
>> ---
>>   src/mesa/main/texgetimage.c |    1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
>> index 7299a4b..74b09ef 100644
>> --- a/src/mesa/main/texgetimage.c
>> +++ b/src/mesa/main/texgetimage.c
>> @@ -518,6 +518,7 @@ get_tex_rgba(struct gl_context *ctx, GLuint
>> dimensions,
>>      if (type_needs_clamping(type)) {
>>         /* the returned image type can't have negative values */
>>         if (dataType == GL_FLOAT ||
>> +          dataType == GL_HALF_FLOAT ||
>>             dataType == GL_SIGNED_NORMALIZED ||
>>             format == GL_LUMINANCE ||
>>             format == GL_LUMINANCE_ALPHA) {
>
>
> Seems to be a bug fix.  Candidate for stable branches?

Yes, definitely.

Marek


More information about the mesa-dev mailing list