st/mesa: enable stencil shader export extension if supported
authorDave Airlie <airlied@redhat.com>
Tue, 5 Oct 2010 23:36:56 +0000 (09:36 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 12 Oct 2010 23:30:05 +0000 (09:30 +1000)
src/mesa/state_tracker/st_extensions.c

index 9b09601bbc52fbefacbf8c60de0860e4eca43e2c..0a9614f754148d8edd5f55e2dc30e0ac325ff85f 100644 (file)
@@ -435,4 +435,8 @@ void st_init_extensions(struct st_context *st)
    if (screen->get_param(screen, PIPE_CAP_DEPTH_CLAMP)) {
       ctx->Extensions.ARB_depth_clamp = GL_TRUE;
    }
+
+   if (screen->get_param(screen, PIPE_CAP_SHADER_STENCIL_EXPORT)) {
+      ctx->Extensions.ARB_shader_stencil_export = GL_TRUE;
+   }
 }