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

This commit is contained in:
kervala 2016-05-27 22:16:29 +02:00
parent e107ca053d
commit f1a7d0aa5f

View file

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