From de1dba32a2e6149c2dd609d93b9f2b41b690472c Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sat, 18 Dec 2021 20:29:32 +0200 Subject: [PATCH] Fix opengl offscreen mode --- nel/src/3d/driver/opengl/driver_opengl_window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/nel/src/3d/driver/opengl/driver_opengl_window.cpp index 35dc433a8..e4fc43366 100644 --- a/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -668,8 +668,9 @@ bool CDriverGL::setDisplay(nlWindow wnd, const GfxMode &mode, bool show, bool re // Retrieve the WGL extensions before init the driver. // Offscreen mode ? - if (_CurrentMode.OffScreen) + if (mode.Offscreen) { + _CurrentMode.OffScreen = true; if (!createWindow(mode)) return false; HWND tmpHWND = _win;