OpenGLRenderer: remove opengl32 dependency on Linux

This commit is contained in:
Jérôme Leclercq
2020-09-01 19:28:10 +02:00
parent e6c2302927
commit c7b0d103e1
7 changed files with 11 additions and 17 deletions

View File

@@ -48,12 +48,6 @@ namespace Nz
bool OpenGLRenderer::Prepare(const ParameterList& parameters)
{
if (!m_opengl32Lib.Load("opengl32" NAZARA_DYNLIB_EXTENSION))
{
NazaraError("Failed to load opengl32 library, is OpenGL installed on your system?");
return false;
}
std::unique_ptr<GL::Loader> loader = SelectLoader();
if (!loader)
{
@@ -73,7 +67,7 @@ namespace Nz
#if defined(NAZARA_PLATFORM_WINDOWS) || defined(NAZARA_PLATFORM_LINUX)
try
{
return std::make_unique<GL::EGLLoader>(m_opengl32Lib);
return std::make_unique<GL::EGLLoader>();
}
catch (const std::exception& e)
{
@@ -84,7 +78,7 @@ namespace Nz
#ifdef NAZARA_PLATFORM_WINDOWS
try
{
return std::make_unique<GL::WGLLoader>(m_opengl32Lib);
return std::make_unique<GL::WGLLoader>();
}
catch (const std::exception& e)
{