[Mesa-dev] [PATCH 1/3] glsl: Enable ARB_explicit_attrib_location in GLSL 3.30.

Kenneth Graunke kenneth at whitecape.org
Fri Sep 13 11:25:41 PDT 2013


GLSL 3.30 wholly includes the ARB_explicit_attrib_location
functionality.  Failing to set this flag meant we wouldn't handle the
layout qualifiers appropriately.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reported-by: Dan Ginsburg <dang at valvesoftware.com>
Cc: Ian Romanick <idr at freedesktop.org>
---
 src/glsl/glsl_parser_extras.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index cac5a18..aa3ad8d 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -304,7 +304,7 @@ _mesa_glsl_parse_state::process_version_directive(YYLTYPE *locp, int version,
       this->ARB_uniform_buffer_object_enable = true;
    }
 
-   if (this->language_version == 300 && this->es_shader) {
+   if (this->is_version(330, 300)) {
       this->ARB_explicit_attrib_location_enable = true;
    }
 }
-- 
1.8.3.4



More information about the mesa-dev mailing list