From 5bd9ed9369021f023e27455cbf20466841c5be93 Mon Sep 17 00:00:00 2001 From: kgv Date: Fri, 6 Feb 2015 16:38:08 +0300 Subject: [PATCH 1/1] 0025800: Visualization, TKOpenGl - disable GL_DITHER explicitly --- src/OpenGl/OpenGl_Window.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OpenGl/OpenGl_Window.cxx b/src/OpenGl/OpenGl_Window.cxx index d17a0ac865..b7fb9db8ec 100644 --- a/src/OpenGl/OpenGl_Window.cxx +++ b/src/OpenGl/OpenGl_Window.cxx @@ -759,6 +759,7 @@ void OpenGl_Window::Init() myHeight = aNewHeight; #endif + glDisable (GL_DITHER); glDisable (GL_SCISSOR_TEST); glViewport (0, 0, myWidth, myHeight); #if !defined(GL_ES_VERSION_2_0) @@ -793,6 +794,7 @@ void OpenGl_Window::DisableFeatures() const * (Omit as much of this as possible, when you know in advance * that the OpenGL state will already be set correctly.) */ + glDisable(GL_DITHER); glDisable(GL_BLEND); glDisable(GL_DEPTH_TEST); glDisable(GL_TEXTURE_2D); -- 2.20.1