From: Marek Olšák Date: Wed, 14 Jun 2017 21:02:04 +0000 (+0200) Subject: st/mesa: fix pipe_rasterizer_state::scissor with multiple viewports X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ec1e32d11ed788dfed229a569a238743b9b1f9f;p=mesa.git st/mesa: fix pipe_rasterizer_state::scissor with multiple viewports Cc: 17.1 Reviewed-by: Nicolai Hähnle --- 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 &&