glsl: Incorporate all UBO language changes into GLSL 1.40.
authorEric Anholt <eric@anholt.net>
Mon, 18 Jun 2012 23:47:04 +0000 (16:47 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 31 Jul 2012 19:06:19 +0000 (12:06 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_parser.yy

index d44ec50e124cff6a0d04b140d912028f40c97986..b7e1a5b16e14ccfed8d8533a82aaf5b72a401485 100644 (file)
@@ -298,6 +298,10 @@ version_statement:
                               state->version_string,
                               state->supported_version_string);
           }
+
+          if (state->language_version >= 140) {
+             state->ARB_uniform_buffer_object_enable = true;
+          }
        }
        ;