diff options
author | Eric Anholt <[email protected]> | 2010-07-28 14:58:31 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-28 15:00:29 -0700 |
commit | 0c7b37c8367e72e7b4295cd249561e5c3079d161 (patch) | |
tree | eab04a8f37e6f022ea07b198deb1fca2e9833ed7 /src/glsl/glcpp/glcpp-parse.y | |
parent | 4a962170d7cf4243d6ae156fca20a6167388925d (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.y')
-rw-r--r-- | src/glsl/glcpp/glcpp-parse.y | 8 |
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; |