From 85062a3028e2c50ce8f48ab020587a1bb0a5647b Mon Sep 17 00:00:00 2001 From: Andrew Knight Date: Thu, 25 Sep 2014 15:09:03 +0300 Subject: Revert "winrt: Remove depth/stencil from the default window format" This reverts commit 636d2e340206664a5885656c06e1ae9eb032d446. The issue was caused by a bug in ANGLE, not a lack of hardware support. Change-Id: If2a66cd023dc7f2329dc2812169042487eecd428 Reviewed-by: Maurice Kalinowski --- src/plugins/platforms/winrt/qwinrtscreen.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/platforms/winrt') diff --git a/src/plugins/platforms/winrt/qwinrtscreen.cpp b/src/plugins/platforms/winrt/qwinrtscreen.cpp index 5bdbdfb25b..3933902ae3 100644 --- a/src/plugins/platforms/winrt/qwinrtscreen.cpp +++ b/src/plugins/platforms/winrt/qwinrtscreen.cpp @@ -501,6 +501,8 @@ QWinRTScreen::QWinRTScreen() d->surfaceFormat.setRedBufferSize(8); d->surfaceFormat.setGreenBufferSize(8); d->surfaceFormat.setBlueBufferSize(8); + d->surfaceFormat.setDepthBufferSize(24); + d->surfaceFormat.setStencilBufferSize(8); d->surfaceFormat.setRenderableType(QSurfaceFormat::OpenGLES); d->surfaceFormat.setSamples(1); d->surfaceFormat.setSwapBehavior(QSurfaceFormat::DoubleBuffer); -- cgit v1.2.3