From: Jørgen Lind Date: Sun, 8 May 2011 08:53:56 +0000 (+0200) Subject: Fix the wayland windowsurface so that we have stencil and depth buffer X-Git-Tag: qt-v5.0.0-alpha1~222^2^2^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=932ca7178cb11112da4b2325463083d872f31fe5;p=profile%2Fivi%2Fqtwayland.git 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 Reviewed-by: Paul Olav Tvete --- diff --git a/src/plugins/platforms/wayland/gl_integration/qwaylandglwindowsurface.cpp b/src/plugins/platforms/wayland/gl_integration/qwaylandglwindowsurface.cpp index a638fcc..fef07e6 100644 --- a/src/plugins/platforms/wayland/gl_integration/qwaylandglwindowsurface.cpp +++ b/src/plugins/platforms/wayland/gl_integration/qwaylandglwindowsurface.cpp @@ -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