Changed: Don't modify NeL window if managed by a 3rd party library

This commit is contained in:
kervala 2010-12-30 22:18:23 +01:00
parent 60d043bb78
commit 97c4880afa

View file

@ -1786,7 +1786,11 @@ bool CDriverGL::setWindowStyle(EWindowStyle windowStyle)
// --------------------------------------------------
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))
return false;