summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-11-17 15:02:35 -0300
committerGitHub <noreply@github.com>2017-11-17 15:02:35 -0300
commitcb484d75a3a879c11b47a3cddb3c5400f85d608a (patch)
tree639d8b4395253c9494679d3339fbbcab826dcffb
parentf810d369debfdf95cce7f41c48505137d8e53385 (diff)
parent4c0e927ccf89ed5bbdce280ec42ae985bf8fdd7e (diff)
Merge pull request #12980 from Rycerzyk/dithering-11416
Fix alpha dithering in viewports with TransparentBg=false and Usage=2D, issue #11416
-rw-r--r--drivers/gles3/rasterizer_canvas_gles3.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp
index 5d62d2f5a0..42a253bc2d 100644
--- a/drivers/gles3/rasterizer_canvas_gles3.cpp
+++ b/drivers/gles3/rasterizer_canvas_gles3.cpp
@@ -1570,6 +1570,7 @@ void RasterizerCanvasGLES3::reset_canvas() {
glDisable(GL_CULL_FACE);
glDisable(GL_DEPTH_TEST);
glDisable(GL_SCISSOR_TEST);
+ glDisable(GL_DITHER);
glEnable(GL_BLEND);
glBlendEquation(GL_FUNC_ADD);
if (storage->frame.current_rt && storage->frame.current_rt->flags[RasterizerStorage::RENDER_TARGET_TRANSPARENT]) {