From 488765c82ead46aa9c4d5a29ad3ce1eaa2f19c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Thu, 15 Feb 2018 17:37:24 -0800 Subject: [PATCH] vrend: Emit dithering state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Somehow this was missing. Signed-off-by: Stéphane Marchesin Signed-off-by: Dave Airlie --- src/vrend_renderer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index b72178d..b8ae990 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -3254,6 +3254,11 @@ static void vrend_hw_emit_blend(struct vrend_context *ctx, struct pipe_blend_sta else glDisable(GL_SAMPLE_ALPHA_TO_ONE); } + + if (state->dither) + glEnable(GL_DITHER); + else + glDisable(GL_DITHER); } /* there are a few reasons we might need to patch the blend state.