From 069469b468c482244c5d0c1459be32e8fbbca1eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Wed, 15 Aug 2012 12:18:35 +0200 Subject: Made eglfs work with backing store based applications again. Make sure we pick the same config for the context and window surface, and do not create unnecessary window surfaces for the desktop widget. Change-Id: I3c8fb3df9ab8a658196e41dfa1705cfca625a2d7 Reviewed-by: Toby Tomkins Reviewed-by: Laszlo Agocs --- src/plugins/platforms/eglfs/qeglfsbackingstore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/platforms/eglfs/qeglfsbackingstore.cpp') diff --git a/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp b/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp index edcf116b04..2caf1064cf 100644 --- a/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp +++ b/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp @@ -57,7 +57,7 @@ QEglFSBackingStore::QEglFSBackingStore(QWindow *window) , m_texture(0) , m_program(0) { - m_context->setFormat(window->format()); + m_context->setFormat(window->requestedFormat()); m_context->setScreen(window->screen()); m_context->create(); } -- cgit v1.2.3