summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-09-23 18:18:14 -0700
committerKenneth Graunke <[email protected]>2013-09-26 16:55:18 -0700
commitf91475d4ab7e1328904a1df443fbf85ed8acb7f3 (patch)
tree0915c00a53c92fd9f65266028a1d8ee4d4978859 /src/glsl/glsl_parser_extras.cpp
parente4af55c78f9d639653bb9290e0fc63c6658cdc4d (diff)
glsl: Create and use a has_uniform_buffer_objects() helper.
This is better than overriding the extension enable based on the language version; it's robust against shaders that do: #version 140 #extension GL_ARB_uniform_buffer_object : disable Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r--src/glsl/glsl_parser_extras.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index a2b52ef004f..e9922fc1456 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -299,10 +299,6 @@ _mesa_glsl_parse_state::process_version_directive(YYLTYPE *locp, int version,
break;
}
}
-
- if (this->language_version >= 140) {
- this->ARB_uniform_buffer_object_enable = true;
- }
}
extern "C" {