summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/glcpp-parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/glcpp/glcpp-parse.y')
-rw-r--r--src/glsl/glcpp/glcpp-parse.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index 41cfff5551c..c6ff32e544c 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -937,6 +937,14 @@ glcpp_parser_create (const struct gl_extensions *extensions)
"GL_EXT_texture_array", list);
}
+ if ((extensions != NULL) &&
+ extensions->ARB_fragment_coord_conventions) {
+ list = _token_list_create(parser);
+ _token_list_append(list, tok);
+ _define_object_macro(parser, NULL,
+ "GL_ARB_fragment_coord_conventions", list);
+ }
+
talloc_unlink(parser, tok);
return parser;