File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -290,11 +290,17 @@ void GLEngineEGL::resolveEGL() {
290290 std::cout << polyscope::options::printPrefix << " Attempting to dlopen libEGL.so" << std::endl;
291291 }
292292 void * handle = dlopen (" libEGL.so" , RTLD_LAZY);
293+ if (handle && options::verbosity > 5 ) {
294+ std::cout << polyscope::options::printPrefix << " ...loaded libEGL.so" << std::endl;
295+ }
293296 if (!handle) {
294- error ( " EGL: Could not open libEGL.so." );
297+ handle = dlopen ( " libEGL.so.1 " , RTLD_LAZY); // try it while we're at it, happens on OSMesa without dev headers
295298 }
296- if (options::verbosity > 5 ) {
297- std::cout << polyscope::options::printPrefix << " ...loaded libEGL.so" << std::endl;
299+ if (handle && options::verbosity > 5 ) {
300+ std::cout << polyscope::options::printPrefix << " ...loaded libEGL.so.1" << std::endl;
301+ }
302+ if (!handle) {
303+ error (" EGL: Could not open libEGL.so" );
298304 }
299305
300306 // Get EGL functions
You can’t perform that action at this time.
0 commit comments