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:
parent
a5916aa20b
commit
8265e5deb8
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user