st/mesa: depth-stencil-alpha state also depends on _NEW_BUFFERS 47/6147/1
authorMarek Olšák <maraeo@gmail.com>
Mon, 15 Apr 2013 12:39:58 +0000 (14:39 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 24 Apr 2013 01:23:23 +0000 (03:23 +0200)
because the code looks at the visual if there is a depth or stencil buffer
before enabling depth or stencil, respectively.

NOTE: This is a candidate for the stable branches.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_depth.c

index c76a6d8..e351c76 100644 (file)
@@ -153,7 +153,7 @@ 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),            /* mesa */
+      (_NEW_DEPTH|_NEW_STENCIL|_NEW_COLOR|_NEW_BUFFERS),/* mesa */
       0,                                               /* st */
    },
    update_depth_stencil_alpha                          /* update */