1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-13 14:27:08 +03:00

0025800: Visualization, TKOpenGl - disable GL_DITHER explicitly

This commit is contained in:
kgv
2015-02-06 16:38:08 +03:00
committed by bugmaster
parent 348ff75335
commit 5bd9ed9369

View File

@@ -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);