Fix opengl offscreen mode

feature/change-sound-driver-ingame
Nimetu 3 years ago
parent f13c49219e
commit de1dba32a2

@ -668,8 +668,9 @@ bool CDriverGL::setDisplay(nlWindow wnd, const GfxMode &mode, bool show, bool re
// Retrieve the WGL extensions before init the driver. // Retrieve the WGL extensions before init the driver.
// Offscreen mode ? // Offscreen mode ?
if (_CurrentMode.OffScreen) if (mode.Offscreen)
{ {
_CurrentMode.OffScreen = true;
if (!createWindow(mode)) return false; if (!createWindow(mode)) return false;
HWND tmpHWND = _win; HWND tmpHWND = _win;

Loading…
Cancel
Save