Changed: Display a warning if setSwapVBLInterval is called before OpenGL initialization
This commit is contained in:
parent
8d7cf7eb7c
commit
bd0678bd84
1 changed files with 3 additions and 0 deletions
|
@ -2288,7 +2288,10 @@ void CDriverGL::setSwapVBLInterval(uint interval)
|
||||||
H_AUTO_OGL(CDriverGL_setSwapVBLInterval);
|
H_AUTO_OGL(CDriverGL_setSwapVBLInterval);
|
||||||
|
|
||||||
if (!_Initialized)
|
if (!_Initialized)
|
||||||
|
{
|
||||||
|
nlwarning("OpenGL driver not initialized when calling setSwapVBLInterval");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bool res = true;
|
bool res = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue