mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 23:56:15 +00:00
Flag windowed application when attempting window creation using 3D driver
This commit is contained in:
parent
1e172bcfcf
commit
d6b4989a5f
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)
|
bool CDriverD3D::setDisplay(nlWindow wnd, const GfxMode& mode, bool show, bool resizeable) throw(EBadDisplay)
|
||||||
{
|
{
|
||||||
H_AUTO_D3D(CDriver3D_setDisplay);
|
H_AUTO_D3D(CDriver3D_setDisplay);
|
||||||
|
|
||||||
|
if (!mode.OffScreen)
|
||||||
|
NLMISC::INelContext::getInstance().setWindowedApplication(true);
|
||||||
|
|
||||||
if (!_D3D)
|
if (!_D3D)
|
||||||
return false;
|
return false;
|
||||||
#ifndef NL_NO_ASM
|
#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)
|
H_AUTO_OGL(CDriverGL_setDisplay)
|
||||||
|
|
||||||
|
if (!mode.OffScreen)
|
||||||
|
NLMISC::INelContext::getInstance().setWindowedApplication(true);
|
||||||
|
|
||||||
_win = EmptyWindow;
|
_win = EmptyWindow;
|
||||||
|
|
||||||
_CurrentMode = mode;
|
_CurrentMode = mode;
|
||||||
|
|
Loading…
Reference in a new issue