OpenGLRenderer: Default to WGL on Windows
This commit is contained in:
parent
ab0cc800e3
commit
f8dc5a5516
|
|
@ -64,17 +64,6 @@ namespace Nz
|
|||
|
||||
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
|
||||
try
|
||||
{
|
||||
|
|
@ -86,6 +75,17 @@ namespace Nz
|
|||
}
|
||||
#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 {};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue