From 742e53822388b0e79d4aa7c7120378abc1b6e2c2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 22 Sep 2021 14:41:30 +0200 Subject: [PATCH] gles: look for libGLESv2.so.2 Distros do not have the .so files at all times, because those are counted as development and not runtime. --- src/common/rendering/gles/gles_system.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/rendering/gles/gles_system.cpp b/src/common/rendering/gles/gles_system.cpp index 5ad3a157db..a01b8b92ca 100644 --- a/src/common/rendering/gles/gles_system.cpp +++ b/src/common/rendering/gles/gles_system.cpp @@ -32,6 +32,10 @@ static void* LoadGLES2Proc(const char* name) { glesLib = dlopen("libGLESv2.so", flags); } + if(!glesLib) + { + glesLib = dlopen("libGLESv2.so.2", flags); + } } void * ret = NULL;