From: Marek Olšák Date: Tue, 13 Dec 2011 17:11:00 +0000 (+0100) Subject: st/mesa: expose conservative_depth if GLSL 1.3 is supported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=047363a07b0e13f8724791ed834b0b68e762adc7;p=mesa.git st/mesa: expose conservative_depth if GLSL 1.3 is supported It's not yet, but it can be enabled by the override environment variable. --- diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 47a178b8b1f..dc17d76a5ef 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -263,6 +263,12 @@ void st_init_extensions(struct st_context *st) ctx->Const.GLSLVersion = 120; _mesa_override_glsl_version(st->ctx); + /* Extensions that only depend on the GLSL version: + */ + if (ctx->Const.GLSLVersion >= 130) { + ctx->Extensions.ARB_conservative_depth = GL_TRUE; + } + /* * Extensions that are supported by all Gallium drivers: */