Try to fix server build

This commit is contained in:
Benau
2017-01-03 00:03:26 +08:00
parent 2dbf4675a5
commit 6db2212690

View File

@@ -55,10 +55,12 @@ STKTexture::STKTexture(video::IImage* image)
// ----------------------------------------------------------------------------
STKTexture::~STKTexture()
{
#ifndef SERVER_ONLY
if (m_texture_name != 0)
{
glDeleteTextures(1, &m_texture_name);
}
#endif // !SERVER_ONLY
if (m_texture_image != NULL)
m_texture_image->drop();
} // ~STKTexture