st/mesa: expose conservative_depth if GLSL 1.3 is supported
authorMarek Olšák <maraeo@gmail.com>
Tue, 13 Dec 2011 17:11:00 +0000 (18:11 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 17 Dec 2011 13:56:21 +0000 (14:56 +0100)
It's not yet, but it can be enabled by the override environment variable.

src/mesa/state_tracker/st_extensions.c

index 47a178b..dc17d76 100644 (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:
     */