23 Jul 2012 18:03
Re: [PATCH 02/11] glsl: Incorporate all UBO language changes into GLSL 1.40.
Eric Anholt <eric <at> anholt.net>
2012-07-23 16:03:55 GMT
2012-07-23 16:03:55 GMT
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
>> <at> <at> -291,6 +291,10 <at> <at> 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?
_______________________________________________ mesa-dev mailing list mesa-dev <at> lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev
RSS Feed