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++
Revert "Implement switching canvas widget to use native surface"
Halla Rempt4c0844790c78
diff --git a/libs/ui/opengl/kis_opengl_canvas2.cpp b/libs/ui/opengl/kis_opengl_canvas2.cppindex bcde8edef5..279c5be7be 100644--- a/libs/ui/opengl/kis_opengl_canvas2.cpp+++ b/libs/ui/opengl/kis_opengl_canvas2.cpp@@ -97,12 +97,6 @@ KisOpenGLCanvas2::KisOpenGLCanvas2(KisCanvas2 *canvas,#endifsetAttribute(Qt::WA_InputMethodEnabled, true);setAttribute(Qt::WA_DontCreateNativeAncestors, true);-- if (qEnvironmentVariableIsSet("KRITA_USE_NATIVE_CANVAS_SURFACE")) {- infoOpenGL << "Using native surface for the canvas widget";- setAttribute(Qt::WA_NativeWindow, true);- }-setUpdateBehavior(PartialUpdate);// we should make sure the texture doesn't have alpha channel,