Remove a deprecated function call

This commit is contained in:
vlj 2014-09-28 01:13:38 +02:00
parent 7b5ce0f9d7
commit a303eadf3d

View File

@ -3477,8 +3477,9 @@ const wchar_t* COpenGLDriver::getName() const
//! deletes all dynamic lights there are
void COpenGLDriver::deleteAllDynamicLights()
{
for (s32 i=0; i<MaxLights; ++i)
glDisable(GL_LIGHT0 + i);
if (!useCoreContext)
for (s32 i=0; i<MaxLights; ++i)
glDisable(GL_LIGHT0 + i);
RequestedLights.clear();