From 9f52f84f2bd569451d7703906dce5bd0110f7344 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 14 Dec 2024 17:01:43 +0100 Subject: [PATCH] Prefer GL3 driver over legacy GL driver --- src/client/renderingengine.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp index c3cb49eed..fe3c17936 100644 --- a/src/client/renderingengine.cpp +++ b/src/client/renderingengine.cpp @@ -135,7 +135,7 @@ static irr::IrrlichtDevice *createDevice(SIrrlichtCreationParameters params, std { if (requested_driver) { params.DriverType = *requested_driver; - verbosestream << "Trying video driver " << getVideoDriverName(params.DriverType) << std::endl; + infostream << "Trying video driver " << getVideoDriverName(params.DriverType) << std::endl; if (auto *device = createDeviceEx(params)) return device; errorstream << "Failed to initialize the " << getVideoDriverName(params.DriverType) << " video driver" << std::endl; @@ -147,7 +147,7 @@ static irr::IrrlichtDevice *createDevice(SIrrlichtCreationParameters params, std if (fallback_driver == video::EDT_NULL || fallback_driver == requested_driver) continue; params.DriverType = fallback_driver; - verbosestream << "Trying video driver " << getVideoDriverName(params.DriverType) << std::endl; + infostream << "Trying video driver " << getVideoDriverName(params.DriverType) << std::endl; if (auto *device = createDeviceEx(params)) return device; } @@ -374,16 +374,16 @@ void RenderingEngine::draw_load_screen(const std::wstring &text, std::vector RenderingEngine::getSupportedVideoDrivers() { // Only check these drivers. We do not support software and D3D in any capacity. - // Order by preference (best first) + // ordered by preference (best first) static const video::E_DRIVER_TYPE glDrivers[] = { - video::EDT_OPENGL, video::EDT_OPENGL3, + video::EDT_OPENGL, video::EDT_OGLES2, video::EDT_NULL, }; std::vector drivers; - for (video::E_DRIVER_TYPE driver: glDrivers) { + for (auto driver : glDrivers) { if (IrrlichtDevice::isDriverSupported(driver)) drivers.push_back(driver); }