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

0022879: Possible bug in Opengl_togl_begin_layer_mode.cxx

This commit is contained in:
apl
2012-03-13 15:20:21 +04:00
committed by bugmaster
parent 8ca7beb8ad
commit 25289ec1e1
8 changed files with 345 additions and 26 deletions

View File

@@ -90,7 +90,6 @@ void OpenGl_Text::Render (const Handle(OpenGl_Workspace) &AWorkspace) const
AWorkspace->SetTextParam(&myParam);
GLboolean blend_state = GL_FALSE;
GLdouble modelMatrix[16], projMatrix[16];
GLint viewport[4];
GLdouble objrefX, objrefY, objrefZ;
@@ -113,8 +112,6 @@ void OpenGl_Text::Render (const Handle(OpenGl_Workspace) &AWorkspace) const
switch (aspect_text->DisplayType())
{
case Aspect_TODT_BLEND:
blend_state = glIsEnabled(GL_BLEND);
if (!blend_state) glEnable(GL_BLEND);
glEnable(GL_COLOR_LOGIC_OP);
glLogicOp(GL_XOR);
break;
@@ -205,7 +202,6 @@ void OpenGl_Text::Render (const Handle(OpenGl_Workspace) &AWorkspace) const
if (flag_zbuffer) glEnable(GL_DEPTH_TEST);
if (aspect_text->DisplayType() == Aspect_TODT_BLEND)
{
if (!blend_state) glDisable(GL_BLEND);
glDisable(GL_COLOR_LOGIC_OP);
}
}