From: Chad Versace Date: Thu, 27 Jan 2011 09:40:06 +0000 (-0800) Subject: glcpp: Conditionally define macro GL_AMD_conservative_depth X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0423f24eb8a415cf704c307c93e2a8647e799002;p=mesa.git glcpp: Conditionally define macro GL_AMD_conservative_depth Define macro GL_AMD_conservative_depth to 1 when its extension is enabled. --- diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index dacd32161bd..b449eb288b8 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;