Skip to content

Commit

Permalink
fix default context loader egl/x11 fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
szabolcsdombi committed Feb 10, 2024
1 parent 272096d commit 50a0243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _zengl.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def loader(name):
def loader(name):
return proc(name.encode())

except OSError:
except:
lib = ctypes.CDLL('libGL.so')
proc = ctypes.cast(lib.glXGetProcAddress, ctypes.CFUNCTYPE(ctypes.c_ulonglong, ctypes.c_char_p))
if not lib.glXGetCurrentContext():
Expand Down

0 comments on commit 50a0243

Please sign in to comment.