mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 08:46:19 +00:00
Flag windowed application when attempting window creation using 3D driver
This commit is contained in:
parent
4afe23c6e3
commit
28a7017c00
2 changed files with 7 additions and 0 deletions
|
@ -1327,6 +1327,10 @@ const D3DFORMAT FinalPixelFormat[ITexture::UploadFormatCount][CDriverD3D::FinalP
|
|||
bool CDriverD3D::setDisplay(nlWindow wnd, const GfxMode& mode, bool show, bool resizeable) throw(EBadDisplay)
|
||||
{
|
||||
H_AUTO_D3D(CDriver3D_setDisplay);
|
||||
|
||||
if (!mode.OffScreen)
|
||||
NLMISC::INelContext::getInstance().setWindowedApplication(true);
|
||||
|
||||
if (!_D3D)
|
||||
return false;
|
||||
#ifndef NL_NO_ASM
|
||||
|
|
|
@ -603,6 +603,9 @@ bool CDriverGL::setDisplay(nlWindow wnd, const GfxMode &mode, bool show, bool re
|
|||
{
|
||||
H_AUTO_OGL(CDriverGL_setDisplay)
|
||||
|
||||
if (!mode.OffScreen)
|
||||
NLMISC::INelContext::getInstance().setWindowedApplication(true);
|
||||
|
||||
_win = EmptyWindow;
|
||||
|
||||
_CurrentMode = mode;
|
||||
|
|
Loading…
Reference in a new issue