Skip to content

Commit

Permalink
try more filenames for egl loading
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Jan 28, 2025
1 parent 963d8a4 commit e4d989a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/render/opengl/gl_engine_egl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,17 @@ void GLEngineEGL::resolveEGL() {
std::cout << polyscope::options::printPrefix << "Attempting to dlopen libEGL.so" << std::endl;
}
void* handle = dlopen("libEGL.so", RTLD_LAZY);
if (handle && options::verbosity > 5) {
std::cout << polyscope::options::printPrefix << " ...loaded libEGL.so" << std::endl;
}
if (!handle) {
error("EGL: Could not open libEGL.so.");
handle = dlopen("libEGL.so.1", RTLD_LAZY); // try it while we're at it, happens on OSMesa without dev headers
}
if (options::verbosity > 5) {
std::cout << polyscope::options::printPrefix << " ...loaded libEGL.so" << std::endl;
if (handle && options::verbosity > 5) {
std::cout << polyscope::options::printPrefix << " ...loaded libEGL.so.1" << std::endl;
}
if (!handle) {
error("EGL: Could not open libEGL.so");
}

// Get EGL functions
Expand Down

0 comments on commit e4d989a

Please sign in to comment.