summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/glcpp-parse.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-28 14:58:31 -0700
committerEric Anholt <[email protected]>2010-07-28 15:00:29 -0700
commit0c7b37c8367e72e7b4295cd249561e5c3079d161 (patch)
treeeab04a8f37e6f022ea07b198deb1fca2e9833ed7 /src/glsl/glcpp/glcpp-parse.c
parent4a962170d7cf4243d6ae156fca20a6167388925d (diff)
glsl2: Add the define for ARB_fragment_coord_conventions when present.
Fixes: glsl-arb-fragment-coord-conventions-define
Diffstat (limited to 'src/glsl/glcpp/glcpp-parse.c')
-rw-r--r--src/glsl/glcpp/glcpp-parse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.c b/src/glsl/glcpp/glcpp-parse.c
index 2f08ff8112d..8fbbdab52fc 100644
--- a/src/glsl/glcpp/glcpp-parse.c
+++ b/src/glsl/glcpp/glcpp-parse.c
@@ -3242,6 +3242,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;