Changed: Display a warning if setSwapVBLInterval is called before OpenGL initialization

--HG--
branch : develop
hg/compatibility-develop
kervala 9 years ago
parent ae7fa4da2e
commit b29441f22e

@ -2288,7 +2288,10 @@ void CDriverGL::setSwapVBLInterval(uint interval)
H_AUTO_OGL(CDriverGL_setSwapVBLInterval);
if (!_Initialized)
{
nlwarning("OpenGL driver not initialized when calling setSwapVBLInterval");
return;
}
bool res = true;

Loading…
Cancel
Save