summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_clear.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_clear.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_clear.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_clear.c b/src/gallium/drivers/llvmpipe/lp_clear.c
index be2fce1307c..dbcfd9cf6c8 100644
--- a/src/gallium/drivers/llvmpipe/lp_clear.c
+++ b/src/gallium/drivers/llvmpipe/lp_clear.c
@@ -55,6 +55,9 @@ llvmpipe_clear(struct pipe_context *pipe,
if (llvmpipe->no_rast)
return;
+ if (!llvmpipe_check_render_cond(llvmpipe))
+ return;
+
if (LP_PERF & PERF_NO_DEPTH)
buffers &= ~PIPE_CLEAR_DEPTHSTENCIL;