summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-14 23:02:04 +0200
committerMarek Olšák <[email protected]>2017-06-22 01:51:02 +0200
commit2ec1e32d11ed788dfed229a569a238743b9b1f9f (patch)
treebe620fc2a2612fa3182bc53b68f8dd26c581aff2 /src/mesa/state_tracker
parentd7e52327f0ad7e01d071b09d0e9bfd2822a855a9 (diff)
st/mesa: fix pipe_rasterizer_state::scissor with multiple viewports
Cc: 17.1 <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_atom_rasterizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c
index e38896068e8..39be6b15a70 100644
--- a/src/mesa/state_tracker/st_atom_rasterizer.c
+++ b/src/mesa/state_tracker/st_atom_rasterizer.c
@@ -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 &&