Skip to content

armgit / krita

Public Imported from GitHub
0

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++

Fix OCIO compilation on MacOS

Dmitry Kazakova3e7b2ec5394
diff --git a/plugins/dockers/lut/ocio_display_filter_vfx2021.cpp b/plugins/dockers/lut/ocio_display_filter_vfx2021.cpp
index ea886cb5fd..d96b20d3c7 100644
--- a/plugins/dockers/lut/ocio_display_filter_vfx2021.cpp
+++ b/plugins/dockers/lut/ocio_display_filter_vfx2021.cpp
@@ -363,8 +363,7 @@ bool OcioDisplayFilter::updateShader()
#if defined(Q_OS_MAC) && defined(QT_OPENGL_3_2)
QOpenGLVersionProfile profile(QOpenGLContext::currentContext()->surface()->format());
profile.setVersion(3,2);
- QAbstractOpenGLFunctions *f = QOpenGLVersionFunctionsFactory::get(profile, QOpenGLContext::currentContext());
-
+ QOpenGLFunctions_3_2 *f = reinterpret_cast<QOpenGLFunctions_3_2 *>(QOpenGLVersionFunctionsFactory::get(profile, QOpenGLContext::currentContext()));
#else
QOpenGLVersionProfile profile(QOpenGLContext::currentContext()->surface()->format());
profile.setVersion(3,0);