glcpp: Add the define for ARB_explicit_attrib_location when present
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 5 Oct 2010 23:02:38 +0000 (16:02 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 8 Oct 2010 21:21:22 +0000 (14:21 -0700)
src/glsl/glcpp/glcpp-parse.y

index 43513ebb66bff5ba54a1f6838d0a12a26a5e966f..b31a18f87dc0df84df8848d00108260eb67a29cd 100644 (file)
@@ -1094,6 +1094,9 @@ glcpp_parser_create (const struct gl_extensions *extensions, int api)
           if (extensions->ARB_fragment_coord_conventions)
              add_builtin_define(parser, "GL_ARB_fragment_coord_conventions",
                                 1);
+
+          if (extensions->ARB_explicit_attrib_location)
+             add_builtin_define(parser, "GL_ARB_explicit_attrib_location", 1);
        }
 
        language_version = 110;