aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/CEGLManager.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-07-09 22:49:15 +0200
committersfan5 <sfan5@live.de>2022-07-09 23:03:53 +0200
commit074e81f78f4daa1c1da739a7ae0b0ef507ec06ee (patch)
tree62de5c0597c9c374a21f393014f5d7f3b9dbe516 /source/Irrlicht/CEGLManager.cpp
parent25ae15694488fcb23f03a067d12c318550f24010 (diff)
downloadirrlicht-074e81f78f4daa1c1da739a7ae0b0ef507ec06ee.tar.xz
Stop dlopening libGL(ESv2).so
GLX/EGL are supposed to abstract exactly this away, this is a bad hack at best and might totally break stuff at worst.
Diffstat (limited to 'source/Irrlicht/CEGLManager.cpp')
-rwxr-xr-xsource/Irrlicht/CEGLManager.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/source/Irrlicht/CEGLManager.cpp b/source/Irrlicht/CEGLManager.cpp
index dc854c0..abf2a1d 100755
--- a/source/Irrlicht/CEGLManager.cpp
+++ b/source/Irrlicht/CEGLManager.cpp
@@ -9,7 +9,6 @@
#include "irrString.h"
#include "irrArray.h"
#include "os.h"
-#include <dlfcn.h>
#if defined(_IRR_COMPILE_WITH_ANDROID_DEVICE_)
#include <android/native_activity.h>
@@ -21,7 +20,7 @@ namespace video
{
CEGLManager::CEGLManager() : IContextManager(), EglWindow(0), EglDisplay(EGL_NO_DISPLAY),
- EglSurface(EGL_NO_SURFACE), EglContext(EGL_NO_CONTEXT), EglConfig(0), MajorVersion(0), MinorVersion(0), libHandle(NULL)
+ EglSurface(EGL_NO_SURFACE), EglContext(EGL_NO_CONTEXT), EglConfig(0), MajorVersion(0), MinorVersion(0)
{
#ifdef _DEBUG
setDebugName("CEGLManager");
@@ -110,9 +109,6 @@ void CEGLManager::terminate()
MajorVersion = 0;
MinorVersion = 0;
-
- if (libHandle)
- dlclose(libHandle);
}
bool CEGLManager::generateSurface()
@@ -596,15 +592,7 @@ const SExposedVideoData& CEGLManager::getContext() const
void* CEGLManager::getProcAddress(const std::string &procName)
{
- void* proc = NULL;
- proc = (void*)eglGetProcAddress(procName.c_str());
- if (!proc) { // fallback
- if (!libHandle)
- libHandle = dlopen("libGLESv2.so", RTLD_LAZY);
- if (libHandle)
- proc = dlsym(libHandle, procName.c_str());
- }
- return proc;
+ return (void*)eglGetProcAddress(procName.c_str());
}
bool CEGLManager::swapBuffers()