added check for --no-graphics argument

This commit is contained in:
Bart Cools
2014-05-14 17:37:28 +02:00
parent 1fdeaf375a
commit 6a6ba94a16

View File

@@ -1209,7 +1209,7 @@ void IrrDriver::suppressSkyBox()
{
SkyboxTextures.clear();
SphericalHarmonicsTextures.clear();
if (SkyboxCubeMap)
if ((SkyboxCubeMap) && (!ProfileWorld::isNoGraphics()))
glDeleteTextures(1, &SkyboxCubeMap);
SkyboxCubeMap = 0;
}