diff options
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfscontext.cpp')
-rw-r--r-- | src/plugins/platforms/eglfs/qeglfscontext.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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<QEglFSWindow *>(surface))->create(); return QEGLPlatformContext::makeCurrent(surface); } |