gallium: restore additional state after clearing with quad
authorBrian <brian.paul@tungstengraphics.com>
Tue, 18 Mar 2008 21:15:02 +0000 (15:15 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 18 Mar 2008 23:18:10 +0000 (17:18 -0600)
src/mesa/state_tracker/st_cb_clear.c

index 8223784d2e900d95425fe3e0ae5c56e3d726bf18..693cddedf7580e9d2b9e9f118925702b9cb29ff1 100644 (file)
@@ -357,6 +357,8 @@ clear_with_quad(GLcontext *ctx,
    st_invalidate_state(ctx, _NEW_COLOR | _NEW_DEPTH | _NEW_STENCIL);
 #else
    /* Restore pipe state */
+   cso_set_blend(st->cso_context, &st->state.blend);
+   cso_set_depth_stencil_alpha(st->cso_context, &st->state.depth_stencil);
    cso_set_rasterizer(st->cso_context, &st->state.rasterizer);
    pipe->bind_fs_state(pipe, st->fp->driver_shader);
    pipe->bind_vs_state(pipe, st->vp->driver_shader);