Fixed starting a race on OpenGL 2.1

This commit is contained in:
Deve
2015-10-03 17:02:49 +02:00
parent e15cd49cae
commit 895579cba9

View File

@@ -1389,7 +1389,11 @@ scene::ISceneNode *IrrDriver::addSkyBox(const std::vector<video::ITexture*> &tex
{
assert(texture.size() == 6);
m_skybox = new Skybox(texture);
if (CVS->isGLSL())
{
m_skybox = new Skybox(texture);
}
if(spherical_harmonics_textures.size() == 6)
{
m_spherical_harmonics->setTextures(spherical_harmonics_textures);