Merge pull request #12980 from Rycerzyk/dithering-11416

Fix alpha dithering in viewports with TransparentBg=false and Usage=2D, issue #11416
This commit is contained in:
Juan Linietsky 2017-11-17 15:02:35 -03:00 committed by GitHub
commit cb484d75a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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]) {