From 0077982fb78a8ed39a90da03c0898d12583fed64 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 18 Apr 2021 16:07:13 +0200 Subject: GLES fixes (#11205) * Consistently set float precision for GLES * Enable DPI scaling on Windows+GLES --- src/client/renderingengine.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/renderingengine.cpp') diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp index 4f59bbae3..d2d136a61 100644 --- a/src/client/renderingengine.cpp +++ b/src/client/renderingengine.cpp @@ -335,6 +335,10 @@ static bool getWindowHandle(irr::video::IVideoDriver *driver, HWND &hWnd) case video::EDT_DIRECT3D9: hWnd = reinterpret_cast(exposedData.D3D9.HWnd); break; +#if ENABLE_GLES + case video::EDT_OGLES1: + case video::EDT_OGLES2: +#endif case video::EDT_OPENGL: hWnd = reinterpret_cast(exposedData.OpenGLWin32.HWnd); break; -- cgit v1.2.3