gallium/tgsi: add helper tgsi_get_interp_mode
[mesa.git] / src / mesa / state_tracker / st_atom_scissor.c
index a87d02941ca26e0c77f56444c0739254922067f9..f0546df6cb3b2fee1311314f886a7bfd31fef5d4 100644 (file)
@@ -36,6 +36,7 @@
 #include "st_context.h"
 #include "pipe/p_context.h"
 #include "st_atom.h"
+#include "st_util.h"
 
 
 /**
@@ -53,6 +54,9 @@ st_update_scissor( struct st_context *st )
    unsigned i;
    bool changed = false;
 
+   if (!ctx->Scissor.EnableFlags)
+      return;
+
    for (i = 0 ; i < st->state.num_viewports; i++) {
       scissor[i].minx = 0;
       scissor[i].miny = 0;