0025800: Visualization, TKOpenGl - disable GL_DITHER explicitly
[occt.git] / src / OpenGl / OpenGl_Window.cxx
index d17a0ac..b7fb9db 100644 (file)
@@ -759,6 +759,7 @@ void OpenGl_Window::Init()
   myHeight = aNewHeight;
 #endif
 
   myHeight = aNewHeight;
 #endif
 
+  glDisable (GL_DITHER);
   glDisable (GL_SCISSOR_TEST);
   glViewport (0, 0, myWidth, myHeight);
 #if !defined(GL_ES_VERSION_2_0)
   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.)
   */
   * (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);
   glDisable(GL_BLEND);
   glDisable(GL_DEPTH_TEST);
   glDisable(GL_TEXTURE_2D);