about summary refs log tree commit diff
path: root/pkgs/games/anki/patches/remove-the-gl-library-workaround.patch
blob: 74b223f3bd5e73bb2f12c87355216005a0388f1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py
index b6d24080b..5e5faac7b 100644
--- a/qt/aqt/__init__.py
+++ b/qt/aqt/__init__.py
@@ -413,11 +413,5 @@ 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 and not sys.platform.startswith("freebsd"):
-        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: