1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0026844: Visualization, OpenGl_Flipper - fix issues within Core Profile and OpenGL ES

Remove outdated code lines.
This commit is contained in:
kgv 2015-11-05 11:49:30 +03:00 committed by bugmaster
parent a5916aa20b
commit 8265e5deb8

View File

@ -66,11 +66,6 @@ void OpenGl_Flipper::Render (const Handle(OpenGl_Workspace)& theWorkspace) const
{ {
// Check if rendering is to be in immediate mode // Check if rendering is to be in immediate mode
const Handle(OpenGl_Context)& aContext = theWorkspace->GetGlContext(); const Handle(OpenGl_Context)& aContext = theWorkspace->GetGlContext();
#if !defined(GL_ES_VERSION_2_0)
GLint aCurrMode = GL_MODELVIEW;
glGetIntegerv (GL_MATRIX_MODE, &aCurrMode);
if (!myIsEnabled) if (!myIsEnabled)
{ {
// restore matrix state // restore matrix state
@ -78,7 +73,6 @@ void OpenGl_Flipper::Render (const Handle(OpenGl_Workspace)& theWorkspace) const
// Apply since we probably in the middle of something. // Apply since we probably in the middle of something.
aContext->ApplyModelViewMatrix(); aContext->ApplyModelViewMatrix();
return; return;
} }
@ -140,6 +134,4 @@ void OpenGl_Flipper::Render (const Handle(OpenGl_Workspace)& theWorkspace) const
// load transformed model-view matrix // load transformed model-view matrix
aContext->WorldViewState.SetCurrent (aMatrixMV); aContext->WorldViewState.SetCurrent (aMatrixMV);
aContext->ApplyWorldViewMatrix(); aContext->ApplyWorldViewMatrix();
#endif
} }