OpenGLRenderer: Default to WGL on Windows

This commit is contained in:
Jérôme Leclercq 2020-09-04 15:23:14 +02:00
parent ab0cc800e3
commit f8dc5a5516
1 changed files with 11 additions and 11 deletions

View File

@ -64,17 +64,6 @@ namespace Nz
std::unique_ptr<GL::Loader> OpenGLRenderer::SelectLoader() std::unique_ptr<GL::Loader> OpenGLRenderer::SelectLoader()
{ {
#if defined(NAZARA_PLATFORM_WINDOWS) || defined(NAZARA_PLATFORM_LINUX)
try
{
return std::make_unique<GL::EGLLoader>();
}
catch (const std::exception& e)
{
NazaraWarning(std::string("Failed to load EGL: ") + e.what());
}
#endif
#ifdef NAZARA_PLATFORM_WINDOWS #ifdef NAZARA_PLATFORM_WINDOWS
try try
{ {
@ -86,6 +75,17 @@ namespace Nz
} }
#endif #endif
#if defined(NAZARA_PLATFORM_WINDOWS) || defined(NAZARA_PLATFORM_LINUX)
try
{
return std::make_unique<GL::EGLLoader>();
}
catch (const std::exception& e)
{
NazaraWarning(std::string("Failed to load EGL: ") + e.what());
}
#endif
return {}; return {};
} }