glcpp: Add built-in #define for GL_ARB_uniform_buffer_object.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 3 Jul 2012 22:19:59 +0000 (15:19 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 9 Jul 2012 18:11:59 +0000 (11:11 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/glcpp/glcpp-parse.y

index cc4af168976f2eefe2f90502a4e6058fcd8548f9..c0c1ca197c5c929c617fed85fe90e55c6480051b 100644 (file)
@@ -1186,6 +1186,9 @@ glcpp_parser_create (const struct gl_extensions *extensions, int api)
 
           if (extensions->ARB_shader_bit_encoding)
              add_builtin_define(parser, "GL_ARB_shader_bit_encoding", 1);
+
+          if (extensions->ARB_uniform_buffer_object)
+             add_builtin_define(parser, "GL_ARB_uniform_buffer_object", 1);
        }
 
        language_version = 110;