From: Ian Romanick <ian.d.roman...@intel.com>

Signed-off-by: Ian Romanick <ian.d.roman...@intel.com>
Reported-by: Dan Ginsburg <d...@valvesoftware.com>
---
 src/glsl/glsl_parser_extras.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index 3f65ca5..e92f36e 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -306,6 +306,11 @@ _mesa_glsl_parse_state::process_version_directive(YYLTYPE 
*locp, int version,
    if (this->language_version == 300 && this->es_shader) {
       this->ARB_explicit_attrib_location_enable = true;
    }
+
+   if (this->language_version >= 330) {
+      this->ARB_shader_bit_encoding_enable = true;
+      this->ARB_explicit_attrib_location_enable = true;
+   }
 }
 
 extern "C" {
-- 
1.8.1.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to