mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0024452: TKOpenGl - Memory leak in OpenGl_ShaderManager
This commit is contained in:
parent
0adbd30f1d
commit
0c4033b4d1
@ -312,6 +312,7 @@ void OpenGl_ShaderManager::PushLightSourceState (const Handle(OpenGl_ShaderProgr
|
|||||||
OpenGLMaxLights * OpenGl_ShaderLightType::NbOfVec2i(),
|
OpenGLMaxLights * OpenGl_ShaderLightType::NbOfVec2i(),
|
||||||
aLightTypeArray[0].Packed());
|
aLightTypeArray[0].Packed());
|
||||||
theProgram->UpdateState (OpenGl_LIGHT_SOURCES_STATE, myLightSourceState.Index());
|
theProgram->UpdateState (OpenGl_LIGHT_SOURCES_STATE, myLightSourceState.Index());
|
||||||
|
delete[] aLightTypeArray;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user