depot/third_party/nixpkgs/pkgs/games/anki/patches/remove-the-gl-library-workaround.patch
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

17 lines
650 B
Diff

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: