diff options
author | Chad Versace <chad.versace@intel.com> | 2011-01-27 01:40:06 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@intel.com> | 2011-01-26 16:37:44 -0800 |
commit | 0423f24eb8a415cf704c307c93e2a8647e799002 (patch) | |
tree | bc743bf7f53e9ea2aa09552b5d07bb436f1266ba /src/glsl/glcpp | |
parent | 1aeecaa43346d5ab6feec5d7caf28bd5ce53a32b (diff) |
glcpp: Conditionally define macro GL_AMD_conservative_depth
Define macro GL_AMD_conservative_depth to 1 when its extension is
enabled.
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r-- | src/glsl/glcpp/glcpp-parse.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index dacd32161b..b449eb288b 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y @@ -1124,6 +1124,8 @@ glcpp_parser_create (const struct gl_extensions *extensions, int api) if (extensions->ARB_explicit_attrib_location) add_builtin_define(parser, "GL_ARB_explicit_attrib_location", 1); + if (extensions->AMD_conservative_depth) + add_builtin_define(parser, "GL_AMD_conservative_depth", 1); } language_version = 110; |