From 97540db0aee8f17f0a7d892d6d79cff0806d0ec8 Mon Sep 17 00:00:00 2001 From: Louis Gombert Date: Sun, 23 Jun 2024 14:01:35 +0200 Subject: [PATCH] Fix Linux opengl library load --- renderer/HardwareOpenGL.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/renderer/HardwareOpenGL.cpp b/renderer/HardwareOpenGL.cpp index aa4c5213..37c2f4f4 100644 --- a/renderer/HardwareOpenGL.cpp +++ b/renderer/HardwareOpenGL.cpp @@ -448,11 +448,14 @@ int opengl_Setup(oeApplication *app, int *width, int *height) { // ryan's adds. 04/18/2000...SDL stuff on 04/25/2000 bool success = true; - OpenGLDLLHandle = LoadOpenGLDLL("opengl32.dll"); - // OpenGLDLLHandle = LoadOpenGLDLL(gl_library); + OpenGLDLLHandle = LoadOpenGLDLL(gl_library); if (!(OpenGLDLLHandle)) { // rcg07072000 last ditch effort... +#ifdef __LINUX__ OpenGLDLLHandle = LoadOpenGLDLL("libGL.so.1"); +#else + OpenGLDLLHandle = LoadOpenGLDLL("opengl32.dll"); +#endif if (!(OpenGLDLLHandle)) { success = false; }