From e69b14113c9f2c736579e8e551bbfe55e02fd661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Kr=C3=A4henb=C3=BChl?= Date: Wed, 5 Feb 2025 15:07:50 -0600 Subject: [PATCH] Fallback EGL + version bump --- lib/irrlicht/source/Irrlicht/CContextEGL.cpp | 5 +++++ setup.py | 2 +- src/font/font_manager.hpp | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/irrlicht/source/Irrlicht/CContextEGL.cpp b/lib/irrlicht/source/Irrlicht/CContextEGL.cpp index 6179bb71f0..1095a95bc5 100644 --- a/lib/irrlicht/source/Irrlicht/CContextEGL.cpp +++ b/lib/irrlicht/source/Irrlicht/CContextEGL.cpp @@ -236,9 +236,14 @@ bool EGL::init() { void* handle = dlopen("libEGL.so", RTLD_LAZY); if (!handle) { + handle = dlopen("libEGL.so.1", RTLD_LAZY); + if (!handle) { + handle = dlopen("libEGL.so.1.1.0", RTLD_LAZY); + } // TODO: try fallback locations } if (!handle) { + os::Printer::log("Error: Could not find EGL library.\n"); return false; } GetProcAddress = (GetProcAddress_t)dlsym(handle, "eglGetProcAddress"); diff --git a/setup.py b/setup.py index fb6c4a801f..476744d76a 100644 --- a/setup.py +++ b/setup.py @@ -122,7 +122,7 @@ def ignore(base, entries): setup( name='PySuperTuxKart', - version='1.1.3', + version='1.1.4', author='Philipp Krähenbühl', author_email='philkr@utexas.edu', description='Python SuperTuxKart inferface', diff --git a/src/font/font_manager.hpp b/src/font/font_manager.hpp index 88008b7e08..34a9b39713 100644 --- a/src/font/font_manager.hpp +++ b/src/font/font_manager.hpp @@ -27,6 +27,7 @@ #include "utils/log.hpp" #include "utils/no_copy.hpp" +#include #include #include #include