Fix the wayland windowsurface so that we have stencil and depth buffer
authorJørgen Lind <jorgen.lind@nokia.com>
Sun, 8 May 2011 08:53:56 +0000 (10:53 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 6 Jul 2011 08:26:28 +0000 (10:26 +0200)
(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>
src/plugins/platforms/wayland/gl_integration/qwaylandglwindowsurface.cpp

index a638fcc..fef07e6 100644 (file)
@@ -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