eglfs/openwfd: do not purge QSurfaceFormat fields

Change-Id: I6c1d83624838362f6a3daa6c2b309fb518a25d4b
Fixes: QTBUG-75673
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
This commit is contained in:
Laszlo Agocs 2019-05-08 15:51:19 +02:00
parent 516ab2a595
commit 1f04b09446

View File

@ -221,7 +221,7 @@ EGLNativeWindowType QEglFSOpenWFDIntegration::createNativeWindow(QPlatformWindow
QSurfaceFormat QEglFSOpenWFDIntegration::surfaceFormatFor(const QSurfaceFormat &inputFormat) const QSurfaceFormat QEglFSOpenWFDIntegration::surfaceFormatFor(const QSurfaceFormat &inputFormat) const
{ {
QSurfaceFormat format; QSurfaceFormat format = inputFormat;
format.setRedBufferSize(8); format.setRedBufferSize(8);
format.setGreenBufferSize(8); format.setGreenBufferSize(8);
format.setBlueBufferSize(8); format.setBlueBufferSize(8);