1
0
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:
Pawel 2013-12-10 14:05:08 +04:00 committed by abv
parent 0adbd30f1d
commit 0c4033b4d1

View File

@ -312,6 +312,7 @@ void OpenGl_ShaderManager::PushLightSourceState (const Handle(OpenGl_ShaderProgr
OpenGLMaxLights * OpenGl_ShaderLightType::NbOfVec2i(),
aLightTypeArray[0].Packed());
theProgram->UpdateState (OpenGl_LIGHT_SOURCES_STATE, myLightSourceState.Index());
delete[] aLightTypeArray;
return;
}