diff options
Diffstat (limited to 'pkgs/games/anki/patches/remove-the-gl-library-workaround.patch')
-rw-r--r-- | pkgs/games/anki/patches/remove-the-gl-library-workaround.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/games/anki/patches/remove-the-gl-library-workaround.patch b/pkgs/games/anki/patches/remove-the-gl-library-workaround.patch new file mode 100644 index 000000000000..0a3f94e132a0 --- /dev/null +++ b/pkgs/games/anki/patches/remove-the-gl-library-workaround.patch @@ -0,0 +1,19 @@ +diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py +index 6f28d2dd0..fcd6a5ee4 100644 +--- a/qt/aqt/__init__.py ++++ b/qt/aqt/__init__.py +@@ -402,12 +402,6 @@ def setupGL(pm: aqt.profiles.ProfileManager) -> None: + # RHI errors are emitted multiple times so make sure we only handle them once + driver_failed = False + +- # work around pyqt loading wrong GL library +- if is_lin: +- import ctypes +- +- ctypes.CDLL("libGL.so.1", ctypes.RTLD_GLOBAL) +- + # catch opengl errors + def msgHandler(category: Any, ctx: Any, msg: Any) -> None: + if category == QtMsgType.QtDebugMsg: +-- +2.42.0 |