2023-04-12 12:48:02 +00:00
|
|
|
diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py
|
2024-05-15 15:35:15 +00:00
|
|
|
index b6d24080b..5e5faac7b 100644
|
2023-04-12 12:48:02 +00:00
|
|
|
--- a/qt/aqt/__init__.py
|
|
|
|
+++ b/qt/aqt/__init__.py
|
2024-05-15 15:35:15 +00:00
|
|
|
@@ -413,11 +413,5 @@ def setupGL(pm: aqt.profiles.ProfileManager) -> None:
|
2024-01-02 11:29:13 +00:00
|
|
|
# RHI errors are emitted multiple times so make sure we only handle them once
|
|
|
|
driver_failed = False
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
- # work around pyqt loading wrong GL library
|
2024-05-15 15:35:15 +00:00
|
|
|
- if is_lin and not sys.platform.startswith("freebsd"):
|
2023-04-12 12:48:02 +00:00
|
|
|
- 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:
|