Use CommonFunctions::DeleteTexture() instead

This commit is contained in:
FakeShemp
2016-03-13 21:25:04 +01:00
parent 9b5e4c10fd
commit 8e150da7ff
+2 -2
View File
@@ -20,7 +20,7 @@ ShadowPass::ShadowPass(IRenderer * renderer)
ShadowPass::~ShadowPass()
{
glDeleteTextures(1, &m_DepthMap);
CommonFunctions::DeleteTexture(&m_DepthMap);
}
void ShadowPass::DebugGUI()
@@ -218,7 +218,7 @@ void ShadowPass::CheckStatus(bool shadowStatus)
m_EnableShadows = shadowStatus;
if (m_EnableShadows == false) {
glDeleteTextures(1, &m_DepthMap);
CommonFunctions::DeleteTexture(&m_DepthMap);
return;
}