aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau/nv10_state_fb.c
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-08-15 01:25:06 -0400
committerIlia Mirkin <[email protected]>2014-09-12 00:50:56 -0400
commit79959e5de518c59b327a9df4a6fa80a68213b873 (patch)
tree75986af6186e4de7c027dd2ac07d4b8bc3c6d041 /src/mesa/drivers/dri/nouveau/nv10_state_fb.c
parent8ab85bfcd5ddd44c50e5b384222731cb2a1a1496 (diff)
nouveau: only enable the depth test if there actually is a depth buffer
Signed-off-by: Ilia Mirkin <[email protected]> Cc: "10.2 10.3" <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv10_state_fb.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv10_state_fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state_fb.c b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c
index fb66b2d5494..75931849eb9 100644
--- a/src/mesa/drivers/dri/nouveau/nv10_state_fb.c
+++ b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c
@@ -152,6 +152,7 @@ nv10_emit_framebuffer(struct gl_context *ctx, int emit)
context_dirty(ctx, VIEWPORT);
context_dirty(ctx, SCISSOR);
+ context_dirty(ctx, DEPTH);
}
void