summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2014-09-25 15:09:03 +0300
committerAndrew Knight <andrew.knight@digia.com>2014-09-29 16:09:35 +0200
commit85062a3028e2c50ce8f48ab020587a1bb0a5647b (patch)
tree98f751323978b9208b3202a8ead4621b07c7a1f6
parent311157c3c6849e8efccd88f7594bb34c570a6780 (diff)
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 <maurice.kalinowski@digia.com>
-rw-r--r--src/plugins/platforms/winrt/qwinrtscreen.cpp2
1 files changed, 2 insertions, 0 deletions
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);