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++
[qt6] Fix openGL definitions for Qt6
Dmitry Kazakov9002e874e648
diff --git a/libs/ui/opengl/kis_opengl.cpp b/libs/ui/opengl/kis_opengl.cppindex 02bd2039af..a3c60c0ee6 100644--- a/libs/ui/opengl/kis_opengl.cpp+++ b/libs/ui/opengl/kis_opengl.cpp@@ -9,6 +9,8 @@#include <boost/optional.hpp>+#include <QtVersionChecks>+#include <QOpenGLContext>#include <QOpenGLDebugLogger>#include <QOpenGLFunctions>@@ -44,6 +46,7 @@# define GL_RENDERER 0x1F01#endif+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))/// openGL ES headers use a bit different names in prototypes,/// add a workaround for it#if !defined APIENTRYP && defined GL_APIENTRYP@@ -51,6 +54,9 @@#endiftypedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);+#else+typedef void (QOPENGLF_APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);+#endifnamespace{