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.
This commit is contained in:
Marek Olšák 2011-12-13 18:11:00 +01:00
parent 95aa0e5d84
commit 047363a07b
1 changed files with 6 additions and 0 deletions

View File

@ -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:
*/