Ian Romanick <i...@freedesktop.org> writes:

> On 07/20/2012 03:33 PM, Eric Anholt wrote:
>> ---
>>   src/glsl/glsl_parser.yy |    4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
>> index b2533c8..0ed424d 100644
>> --- a/src/glsl/glsl_parser.yy
>> +++ b/src/glsl/glsl_parser.yy
>> @@ -291,6 +291,10 @@ version_statement:
>>                             state->version_string,
>>                             state->supported_version_string);
>>         }
>> +
>> +       if (state->language_version >= 140) {
>> +          state->ARB_uniform_buffer_object_enable = true;
>> +       }
>
> Do we need something to prevent
>
> #extension GL_ARB_uniform_buffer_object: disable
>
> from making dumb things happen?

I had thought about that briefly, and decided that if you really go out
of your way to do that, the behavior you end up with is probably sort of
like what you meant, but seriously what were you thinking?

Attachment: pgpGAH8YGBnjp.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to