mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Changed: Display a warning if setSwapVBLInterval is called before OpenGL initialization
--HG-- branch : develop
This commit is contained in:
parent
ae7fa4da2e
commit
b29441f22e
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue