glsl2: Add the define for ARB_fragment_coord_conventions when present.
Fixes: glsl-arb-fragment-coord-conventions-define
This commit is contained in:
parent
4a962170d7
commit
0c7b37c836
2 changed files with 16 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue