Merge branch 'master' into instanced-arrays
[mesa.git] / src / gallium / drivers / softpipe / sp_clear.c
index f98087deb8c8c3094ca04bac354af36d1aa2ac64..5f130453c3968da6d2dc106325bd06208fc22799 100644 (file)
@@ -36,6 +36,7 @@
 #include "util/u_pack_color.h"
 #include "sp_clear.h"
 #include "sp_context.h"
+#include "sp_query.h"
 #include "sp_tile_cache.h"
 
 
@@ -55,6 +56,9 @@ softpipe_clear(struct pipe_context *pipe, unsigned buffers, const float *rgba,
    if (softpipe->no_rast)
       return;
 
+   if (!softpipe_check_render_cond(softpipe))
+      return;
+
 #if 0
    softpipe_update_derived(softpipe); /* not needed?? */
 #endif