mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0025483: Visualization, TKOpenGl - fix memory leak due to unused stack in OpenGl_StateInterface
This commit is contained in:
@@ -410,36 +410,6 @@ void OpenGl_ShaderManager::UpdateWorldViewStateTo (const OpenGl_Mat4& theWorldVi
|
||||
myWorldViewState.Update();
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : RevertProjectionStateTo
|
||||
// purpose : Reverts state of OCCT projection transform
|
||||
// =======================================================================
|
||||
void OpenGl_ShaderManager::RevertProjectionStateTo (const OpenGl_Mat4& theProjectionMatrix)
|
||||
{
|
||||
myProjectionState.Set (theProjectionMatrix);
|
||||
myProjectionState.Revert();
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : RevertModelWorldStateTo
|
||||
// purpose : Reverts state of OCCT model-world transform
|
||||
// =======================================================================
|
||||
void OpenGl_ShaderManager::RevertModelWorldStateTo (const OpenGl_Mat4& theModelWorldMatrix)
|
||||
{
|
||||
myModelWorldState.Set (theModelWorldMatrix);
|
||||
myModelWorldState.Revert();
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : RevertWorldViewStateTo
|
||||
// purpose : Reverts state of OCCT world-view transform
|
||||
// =======================================================================
|
||||
void OpenGl_ShaderManager::RevertWorldViewStateTo (const OpenGl_Mat4& theWorldViewMatrix)
|
||||
{
|
||||
myWorldViewState.Set (theWorldViewMatrix);
|
||||
myWorldViewState.Revert();
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : LightSourceState
|
||||
// purpose : Returns current state of OCCT light sources
|
||||
|
Reference in New Issue
Block a user