Set correct QSurfaceFormat also for raster surfacetype

Change-Id: Idd37942842dc59ae391b6b34308d4c01e7a25bc5
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
Pasi Petäjäjärvi 2014-11-11 16:28:43 +02:00 committed by Jani Heikkinen
parent 9afb02412e
commit be64d905a0

View File

@ -103,7 +103,7 @@ void QEglFSWindow::create()
if (isRaster()) { if (isRaster()) {
QOpenGLContext *context = new QOpenGLContext(QGuiApplication::instance()); QOpenGLContext *context = new QOpenGLContext(QGuiApplication::instance());
context->setFormat(window()->requestedFormat()); context->setFormat(m_format);
context->setScreen(window()->screen()); context->setScreen(window()->screen());
if (!context->create()) if (!context->create())
qFatal("EGLFS: Failed to create compositing context"); qFatal("EGLFS: Failed to create compositing context");