From ef204659b9c5d21c77a40c8bc11cd98039785303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Tue, 29 May 2012 14:18:04 +0200 Subject: Fixed KMS y-invertedness. Upgrade to new gbm_surface API which lets us use eglCreateWindowSurface. Change-Id: I4af86d442375017ae3b4744e7b3bdebf3b496b6e Reviewed-by: Andy Nichols --- src/plugins/platforms/kms/qkmscontext.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/plugins/platforms/kms/qkmscontext.h') diff --git a/src/plugins/platforms/kms/qkmscontext.h b/src/plugins/platforms/kms/qkmscontext.h index 32223ada51..4318202326 100644 --- a/src/plugins/platforms/kms/qkmscontext.h +++ b/src/plugins/platforms/kms/qkmscontext.h @@ -54,20 +54,22 @@ class QKmsDevice; class QKmsContext : public QPlatformOpenGLContext { public: - QKmsContext(QKmsDevice *device); + QKmsContext(QOpenGLContext *context, QKmsDevice *device); bool makeCurrent(QPlatformSurface *surface); void doneCurrent(); void swapBuffers(QPlatformSurface *surface); void (*getProcAddress(const QByteArray &procName)) (); + bool isValid() const; + QSurfaceFormat format() const; EGLContext eglContext() const; - GLuint defaultFramebufferObject(QPlatformSurface *surface) const; - private: + EGLContext m_eglContext; + QSurfaceFormat m_format; QKmsDevice *m_device; }; -- cgit v1.2.3