summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/kms
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/kms')
-rw-r--r--src/plugins/platforms/kms/qkmscontext.cpp4
-rw-r--r--src/plugins/platforms/kms/qkmscontext.h4
-rw-r--r--src/plugins/platforms/kms/qkmsintegration.cpp4
-rw-r--r--src/plugins/platforms/kms/qkmsintegration.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/platforms/kms/qkmscontext.cpp b/src/plugins/platforms/kms/qkmscontext.cpp
index 835b6e8e7a..f27673a24d 100644
--- a/src/plugins/platforms/kms/qkmscontext.cpp
+++ b/src/plugins/platforms/kms/qkmscontext.cpp
@@ -48,7 +48,7 @@
QT_BEGIN_NAMESPACE
QKmsContext::QKmsContext(QKmsDevice *device)
- : QPlatformGLContext(),
+ : QPlatformOpenGLContext(),
m_device(device)
{
}
@@ -72,7 +72,7 @@ bool QKmsContext::makeCurrent(QPlatformSurface *surface)
void QKmsContext::doneCurrent()
{
- QPlatformGLContext::doneCurrent();
+ QPlatformOpenGLContext::doneCurrent();
bool ok = eglMakeCurrent(m_device->eglDisplay(), EGL_NO_SURFACE, EGL_NO_SURFACE,
EGL_NO_CONTEXT);
if (!ok)
diff --git a/src/plugins/platforms/kms/qkmscontext.h b/src/plugins/platforms/kms/qkmscontext.h
index 25398c5530..2f4f44c3d0 100644
--- a/src/plugins/platforms/kms/qkmscontext.h
+++ b/src/plugins/platforms/kms/qkmscontext.h
@@ -42,7 +42,7 @@
#ifndef QKMSCONTEXT_H
#define QKMSCONTEXT_H
-#include <QtGui/QPlatformGLContext>
+#include <QtGui/QPlatformOpenGLContext>
#define EGL_EGLEXT_PROTOTYPES 1
#include <EGL/egl.h>
@@ -51,7 +51,7 @@ QT_BEGIN_NAMESPACE
class QKmsDevice;
-class QKmsContext : public QPlatformGLContext
+class QKmsContext : public QPlatformOpenGLContext
{
public:
QKmsContext(QKmsDevice *device);
diff --git a/src/plugins/platforms/kms/qkmsintegration.cpp b/src/plugins/platforms/kms/qkmsintegration.cpp
index e67f0ec245..d8e4876eee 100644
--- a/src/plugins/platforms/kms/qkmsintegration.cpp
+++ b/src/plugins/platforms/kms/qkmsintegration.cpp
@@ -50,7 +50,7 @@
#include <QtPlatformSupport/private/qgenericunixeventdispatcher_p.h>
#include <QtPlatformSupport/private/qgenericunixfontdatabase_p.h>
#include <QtGui/private/qguiapplication_p.h>
-#include <QtGui/QGuiGLContext>
+#include <QtGui/QOpenGLContext>
#include <QtGui/QScreen>
QT_BEGIN_NAMESPACE
@@ -91,7 +91,7 @@ bool QKmsIntegration::hasCapability(QPlatformIntegration::Capability cap) const
}
}
-QPlatformGLContext *QKmsIntegration::createPlatformGLContext(QGuiGLContext *context) const
+QPlatformOpenGLContext *QKmsIntegration::createPlatformOpenGLContext(QOpenGLContext *context) const
{
QKmsScreen *screen = static_cast<QKmsScreen *>(context->screen()->handle());
return new QKmsContext(screen->device());
diff --git a/src/plugins/platforms/kms/qkmsintegration.h b/src/plugins/platforms/kms/qkmsintegration.h
index bf84e1b33b..a1f3623280 100644
--- a/src/plugins/platforms/kms/qkmsintegration.h
+++ b/src/plugins/platforms/kms/qkmsintegration.h
@@ -57,7 +57,7 @@ public:
bool hasCapability(QPlatformIntegration::Capability cap) const;
- QPlatformGLContext *createPlatformGLContext(QGuiGLContext *context) const;
+ QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const;
QPlatformWindow *createPlatformWindow(QWindow *window) const;
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;