[Mesa-dev] [PATCH 02/11] glsl: Incorporate all UBO language changes into GLSL 1.40.

Eric Anholt eric at anholt.net
Mon Jul 23 09:03:55 PDT 2012


Ian Romanick <idr at 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120723/f8818bec/attachment.pgp>


More information about the mesa-dev mailing list