From 2ec1e32d11ed788dfed229a569a238743b9b1f9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 14 Jun 2017 23:02:04 +0200 Subject: [PATCH] st/mesa: fix pipe_rasterizer_state::scissor with multiple viewports MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Cc: 17.1 Reviewed-by: Nicolai Hähnle --- src/mesa/state_tracker/st_atom_rasterizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 && -- 2.30.2