On Mon, Jan 14, 2013 at 11:13 AM, Matt Turner <[email protected]> wrote:
> On Sat, Jan 12, 2013 at 8:11 PM, Jordan Justen
>> diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
>> index a219398..abb9f34 100644
>> --- a/src/mesa/main/fbobject.c
>> +++ b/src/mesa/main/fbobject.c
>> @@ -1217,21 +1217,27 @@ _mesa_base_fbo_format(struct gl_context *ctx, GLenum 
>> internalFormat)
>>               ctx->Extensions.ARB_framebuffer_object ? GL_ALPHA : 0;
>>     case GL_R16F:
>>     case GL_R32F:
>> -      return (_mesa_is_desktop_gl(ctx) &&
>> -             ctx->Extensions.ARB_texture_rg &&
>> -             ctx->Extensions.ARB_texture_float) ? GL_RED : 0;
>> +      return ((_mesa_is_desktop_gl(ctx) &&
>> +               ctx->Extensions.ARB_texture_rg &&
>> +               ctx->Extensions.ARB_texture_float) ||
>> +              (ctx->API == API_OPENGLES2) /* EXT_color_buffer_float */ )
>> +         ? GL_RED : 0;
>
> I wonder if there is any hardware that can do ES 2 but not
> floating-point color buffers?

Whoops. Ian recommended I use the ARB_texture_float flag for this extension.

-Jordan
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to