mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 00:56:19 +00:00
Changed: Don't modify NeL window if managed by a 3rd party library
This commit is contained in:
parent
de03c40db3
commit
5b44c09bd3
1 changed files with 5 additions and 1 deletions
|
@ -1786,7 +1786,11 @@ bool CDriverGL::setWindowStyle(EWindowStyle windowStyle)
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
bool CDriverGL::setMode(const GfxMode& mode)
|
bool CDriverGL::setMode(const GfxMode& mode)
|
||||||
{
|
{
|
||||||
H_AUTO_OGL(CDriverGL_setMode)
|
H_AUTO_OGL(CDriverGL_setMode);
|
||||||
|
|
||||||
|
// don't modify window or screen if managed by a 3rd party library
|
||||||
|
if (!_DestroyWindow)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!setScreenMode(mode))
|
if (!setScreenMode(mode))
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue