diff --git a/OpenGL/platform/egl.py b/OpenGL/platform/egl.py index 1e087eb0..ff9a68e0 100644 --- a/OpenGL/platform/egl.py +++ b/OpenGL/platform/egl.py @@ -31,11 +31,15 @@ def GLES3(self): @baseplatform.lazy_property def GL(self): try: - return ctypesloader.loadLibrary( - ctypes.cdll, - 'OpenGL', - mode=ctypes.RTLD_GLOBAL - ) + for name in ('OpenGL','GL'): + lib = ctypesloader.loadLibrary( + ctypes.cdll, + 'GL', + mode=ctypes.RTLD_GLOBAL + ) + if lib: + return lib + raise OSError("No GL/OpenGL library available") except OSError: return self.GLES2 or self.GLES1 @baseplatform.lazy_property