Browse Source

glsl: Parser handles "#extension GL_ARB_uniform_buffer_object"

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
tags/rgb10_a2ui-v3
Vincent Lejeune 13 years ago
parent
commit
7fabb2b593
2 changed files with 3 additions and 0 deletions
  1. 1
    0
      src/glsl/glsl_parser_extras.cpp
  2. 2
    0
      src/glsl/glsl_parser_extras.h

+ 1
- 0
src/glsl/glsl_parser_extras.cpp View 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

+ 2
- 0
src/glsl/glsl_parser_extras.h View 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. */

Loading…
Cancel
Save