glsl: add temporary copy_shader_info() function
[mesa.git] / src / mesa / state_tracker / st_atom_depth.c
index d9cc97029fb2d353b65a93bb3c1ec0f58974f172..7092c3f83ec9d0868b67194645e5d2648695b930 100644 (file)
@@ -149,7 +149,8 @@ update_depth_stencil_alpha(struct st_context *st)
       }
    }
 
-   if (ctx->Color.AlphaEnabled) {
+   if (ctx->Color.AlphaEnabled &&
+       !(ctx->DrawBuffer->_IntegerBuffers & 0x1)) {
       dsa->alpha.enabled = 1;
       dsa->alpha.func = st_compare_func_to_pipe(ctx->Color.AlphaFunc);
       dsa->alpha.ref_value = ctx->Color.AlphaRefUnclamped;
@@ -161,10 +162,5 @@ update_depth_stencil_alpha(struct st_context *st)
 
 
 const struct st_tracked_state st_update_depth_stencil_alpha = {
-   "st_update_depth_stencil",                          /* name */
-   {                                                   /* dirty */
-      (_NEW_DEPTH|_NEW_STENCIL|_NEW_COLOR|_NEW_BUFFERS),/* mesa */
-      0,                                               /* st */
-   },
    update_depth_stencil_alpha                          /* update */
 };