Fix one more non-exist GL call in no graphics
This commit is contained in:
@@ -79,7 +79,7 @@ STKTexture::STKTexture(video::IImage* img, const std::string& name)
|
||||
STKTexture::~STKTexture()
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
if (m_texture_name != 0)
|
||||
if (m_texture_name != 0 && !ProfileWorld::isNoGraphics())
|
||||
{
|
||||
glDeleteTextures(1, &m_texture_name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user