From 8265e5deb861bc571cc1a5c0735476f485400b5a Mon Sep 17 00:00:00 2001 From: kgv Date: Thu, 5 Nov 2015 11:49:30 +0300 Subject: [PATCH] 0026844: Visualization, OpenGl_Flipper - fix issues within Core Profile and OpenGL ES Remove outdated code lines. --- src/OpenGl/OpenGl_Flipper.cxx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/OpenGl/OpenGl_Flipper.cxx b/src/OpenGl/OpenGl_Flipper.cxx index 5eff4eb130..3a5a0673b1 100755 --- a/src/OpenGl/OpenGl_Flipper.cxx +++ b/src/OpenGl/OpenGl_Flipper.cxx @@ -66,11 +66,6 @@ void OpenGl_Flipper::Render (const Handle(OpenGl_Workspace)& theWorkspace) const { // Check if rendering is to be in immediate mode 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) { // 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. aContext->ApplyModelViewMatrix(); - return; } @@ -140,6 +134,4 @@ void OpenGl_Flipper::Render (const Handle(OpenGl_Workspace)& theWorkspace) const // load transformed model-view matrix aContext->WorldViewState.SetCurrent (aMatrixMV); aContext->ApplyWorldViewMatrix(); - -#endif }