Fix the wayland windowsurface so that we have stencil and depth buffer
(cherry picked from commit 322c96eb9564f930a63be820c22b053630663880) Change-Id: I89c10cea1a302d9549024940e49c7d5960abb953 Reviewed-on: http://codereview.qt.nokia.com/1210 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
This commit is contained in:
parent
83736a8d06
commit
1b1337601e
@ -178,7 +178,7 @@ void QWaylandGLWindowSurface::resize(const QSize &size)
|
||||
QWindowSurface::resize(size);
|
||||
window()->platformWindow()->glContext()->makeCurrent();
|
||||
delete mPaintDevice;
|
||||
mPaintDevice = new QGLFramebufferObject(size);
|
||||
mPaintDevice = new QGLFramebufferObject(size,QGLFramebufferObject::CombinedDepthStencil);
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
Loading…
Reference in New Issue
Block a user