[virglrenderer-devel] [PATCH] vrend: Emit dithering state
Stéphane Marchesin
marcheu at chromium.org
Fri Feb 16 01:37:24 UTC 2018
Somehow this was missing.
Signed-off-by: Stéphane Marchesin <marcheu at chromium.org>
---
src/vrend_renderer.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 935721e..18df3f2 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.
--
2.16.1.291.g4437f3f132-goog
More information about the virglrenderer-devel
mailing list