forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / games / anki / patches / remove-the-gl-library-workaround.patch
blob74b223f3bd5e73bb2f12c87355216005a0388f1d
1 diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py
2 index b6d24080b..5e5faac7b 100644
3 --- a/qt/aqt/__init__.py
4 +++ b/qt/aqt/__init__.py
5 @@ -413,11 +413,5 @@ def setupGL(pm: aqt.profiles.ProfileManager) -> None:
6 # RHI errors are emitted multiple times so make sure we only handle them once
7 driver_failed = False
9 - # work around pyqt loading wrong GL library
10 - if is_lin and not sys.platform.startswith("freebsd"):
11 - import ctypes
13 - ctypes.CDLL("libGL.so.1", ctypes.RTLD_GLOBAL)
15 # catch opengl errors
16 def msgHandler(category: Any, ctx: Any, msg: Any) -> None:
17 if category == QtMsgType.QtDebugMsg: