st/mesa: fix pipe_rasterizer_state::scissor with multiple viewports
authorMarek Olšák <marek.olsak@amd.com>
Wed, 14 Jun 2017 21:02:04 +0000 (23:02 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 21 Jun 2017 23:51:02 +0000 (01:51 +0200)
Cc: 17.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atom_rasterizer.c

index e38896068e8986b93d568055f92b9ceca6004de8..39be6b15a70e9e6d8f54cfbdf4607ccfe46807f7 100644 (file)
@@ -262,7 +262,7 @@ void st_update_rasterizer( struct st_context *st )
          _mesa_geometric_samples(ctx->DrawBuffer) > 1;
 
    /* _NEW_SCISSOR */
-   raster->scissor = ctx->Scissor.EnableFlags;
+   raster->scissor = !!ctx->Scissor.EnableFlags;
 
    /* _NEW_FRAG_CLAMP */
    raster->clamp_fragment_color = !st->clamp_frag_color_in_shader &&