projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
348ff75
)
0025800: Visualization, TKOpenGl - disable GL_DITHER explicitly
author
kgv
<kgv@opencascade.com>
Fri, 6 Feb 2015 13:38:08 +0000
(16:38 +0300)
committer
bugmaster
<bugmaster@opencascade.com>
Thu, 12 Feb 2015 08:26:52 +0000
(11:26 +0300)
src/OpenGl/OpenGl_Window.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/OpenGl/OpenGl_Window.cxx
b/src/OpenGl/OpenGl_Window.cxx
index
d17a0ac
..
b7fb9db
100644
(file)
--- 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);