Fixed ShaderStage::Destroy

Former-commit-id: 87b67ba4e459a698bef9cd899ed7d5eb2cb6259c
This commit is contained in:
Lynix 2014-03-06 10:33:16 +01:00
parent 00caa6b74a
commit 2c3d8ee5f4
1 changed files with 3 additions and 0 deletions

View File

@ -71,7 +71,10 @@ void NzShaderStage::Destroy()
{
m_compiled = false;
if (m_id)
{
glDeleteShader(m_id);
m_id = 0;
}
}
NzString NzShaderStage::GetLog() const