From f2d04d9b8cb323826c5af180dd2c22fe584a5e26 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 13 Jun 2012 16:38:27 -0700 Subject: eglfs: Make QEglFSWindow respect the window format Prior to this change, eglfs code used to override the window format with it's own format. With this change, eglfs will respect the window format. This is useful when the application requires a surface with alpha (for example, so that the video layer below is visible) QEglFSHooks::surfaceFormatFor() allows the hook author to override the context and window surface format. Change-Id: I97f03a8b0871dfebfca73004fa0188b33d0d0367 Reviewed-by: Johannes Zellner Reviewed-by: Girish Ramakrishnan --- src/plugins/platforms/eglfs/qeglfscontext.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/plugins/platforms/eglfs/qeglfscontext.cpp') diff --git a/src/plugins/platforms/eglfs/qeglfscontext.cpp b/src/plugins/platforms/eglfs/qeglfscontext.cpp index 7e874bee0e..1a16b36696 100644 --- a/src/plugins/platforms/eglfs/qeglfscontext.cpp +++ b/src/plugins/platforms/eglfs/qeglfscontext.cpp @@ -50,15 +50,12 @@ QT_BEGIN_NAMESPACE QEglFSContext::QEglFSContext(const QSurfaceFormat &format, QPlatformOpenGLContext *share, EGLDisplay display, EGLenum eglApi) - : QEGLPlatformContext(format, share, display, eglApi) + : QEGLPlatformContext(hooks->surfaceFormatFor(format), share, display, eglApi) { } bool QEglFSContext::makeCurrent(QPlatformSurface *surface) { - // create the native window surface. this makes sure that - // we create surfaces only for painted widgets (unlike QDesktopWidget) - (static_cast(surface))->create(); return QEGLPlatformContext::makeCurrent(surface); } -- cgit v1.2.3