Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Activate explicit openGL context switching when using Qt6
Dmitry Kazakov2a45872d8a8c
diff --git a/libs/ui/opengl/KisOpenGLContextSwitchLock.cpp b/libs/ui/opengl/KisOpenGLContextSwitchLock.cppindex f542da5876..a423a4ebcf 100644--- a/libs/ui/opengl/KisOpenGLContextSwitchLock.cpp+++ b/libs/ui/opengl/KisOpenGLContextSwitchLock.cpp@@ -14,7 +14,7 @@ namespace {inline bool shouldUseLock(){-#if defined(Q_OS_MACOS) || defined(Q_OS_ANDROID)+#if defined(Q_OS_MACOS) || defined(Q_OS_ANDROID) || QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)/*** On OSX openGL different (shared) contexts have different execution queues.* It means that the textures uploading and their painting can be easily reordered.