glsl: Parser handles "#extension GL_ARB_uniform_buffer_object"
authorVincent Lejeune <vljn@ovi.com>
Sun, 25 Dec 2011 18:17:03 +0000 (19:17 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 9 Jul 2012 18:11:38 +0000 (11:11 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h

index 02c3986169c77b55dc76e4889d1e31244309e6a1..c19b6f9e6a42e78436e54bda98212cdbea2ad9d7 100644 (file)
@@ -296,6 +296,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = {
    EXT(OES_texture_3D,                 true,  false, true,  false, true,      EXT_texture3D),
    EXT(OES_EGL_image_external,         true,  false, true,  false, true,      OES_EGL_image_external),
    EXT(ARB_shader_bit_encoding,        true,  true,  true,  true,  false,     ARB_shader_bit_encoding),
+   EXT(ARB_uniform_buffer_object,      true,  false, true,  true,  false,     ARB_uniform_buffer_object),
 };
 
 #undef EXT
index 246fc8141dbc8745d6046c05a8f6e1b3f8061f98..d97217ef943ecfb16e733067e8af6326c17d02e4 100644 (file)
@@ -207,6 +207,8 @@ struct _mesa_glsl_parse_state {
    bool OES_EGL_image_external_warn;
    bool ARB_shader_bit_encoding_enable;
    bool ARB_shader_bit_encoding_warn;
+   bool ARB_uniform_buffer_object_enable;
+   bool ARB_uniform_buffer_object_warn;
    /*@}*/
 
    /** Extensions supported by the OpenGL implementation. */