Fix one more non-exist GL call in no graphics

This commit is contained in:
Benau
2018-03-01 12:19:25 +08:00
parent 9d93e0112c
commit d76bd49eee

View File

@@ -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);
}