diff options
Diffstat (limited to 'src/core/ozone')
-rw-r--r-- | src/core/ozone/gl_context_qt.cpp | 4 | ||||
-rw-r--r-- | src/core/ozone/gl_share_context_qt.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/ozone/gl_context_qt.cpp b/src/core/ozone/gl_context_qt.cpp index e511e8eb5..f4d3f1618 100644 --- a/src/core/ozone/gl_context_qt.cpp +++ b/src/core/ozone/gl_context_qt.cpp @@ -177,7 +177,7 @@ void *GLContextHelper::getGlxPlatformInterface() { #if QT_CONFIG(opengl) && defined(USE_GLX) if (QOpenGLContext *context = qt_gl_global_share_context()) - return context->platformInterface<QPlatformInterface::QGLXContext>(); + return context->nativeInterface<QNativeInterface::QGLXContext>(); #endif return nullptr; } @@ -186,7 +186,7 @@ void *GLContextHelper::getEglPlatformInterface() { #if QT_CONFIG(opengl) && QT_CONFIG(egl) if (QOpenGLContext *context = qt_gl_global_share_context()) - return context->platformInterface<QPlatformInterface::QEGLContext>(); + return context->nativeInterface<QNativeInterface::QEGLContext>(); #endif return nullptr; } diff --git a/src/core/ozone/gl_share_context_qt.cpp b/src/core/ozone/gl_share_context_qt.cpp index 669652057..c2cfecb8b 100644 --- a/src/core/ozone/gl_share_context_qt.cpp +++ b/src/core/ozone/gl_share_context_qt.cpp @@ -57,21 +57,21 @@ QtShareGLContext::QtShareGLContext(QOpenGLContext *qtContext) #if QT_CONFIG(opengl) QOpenGLContext *context = QOpenGLContext::globalShareContext(); #if defined(Q_OS_MACOS) - auto *ctx = context->platformInterface<QPlatformInterface::QCocoaGLContext>(); + auto *ctx = context->nativeInterface<QNativeInterface::QCocoaGLContext>(); if (ctx) m_handle = cglContext(ctx->nativeContext()); #endif #if defined(Q_OS_WIN) - auto *ctx = context->platformInterface<QPlatformInterface::QWGLContext>(); + auto *ctx = context->nativeInterface<QNativeInterface::QWGLContext>(); #endif #if defined(Q_OS_LINUX) - auto *ctx = context->platformInterface<QPlatformInterface::QGLXContext>(); + auto *ctx = context->nativeInterface<QNativeInterface::QGLXContext>(); #endif if (ctx && !m_handle) m_handle = (void *)ctx->nativeContext(); #if QT_CONFIG(egl) if (!m_handle) { - auto *ctx = context->platformInterface<QPlatformInterface::QEGLContext>(); + auto *ctx = context->nativeInterface<QNativeInterface::QEGLContext>(); if (ctx) m_handle = (void *)ctx->nativeContext(); } |