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.
This commit is contained in:
Jan Engelhardt 2021-09-22 14:41:30 +02:00 committed by Rachael Alexanderson
parent 0e809b2aa1
commit 742e538223

View file

@ -32,6 +32,10 @@ static void* LoadGLES2Proc(const char* name)
{ {
glesLib = dlopen("libGLESv2.so", flags); glesLib = dlopen("libGLESv2.so", flags);
} }
if(!glesLib)
{
glesLib = dlopen("libGLESv2.so.2", flags);
}
} }
void * ret = NULL; void * ret = NULL;