From 5f58caf4ddb188289e257befa04b652ac0146543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 20 Dec 2018 13:13:09 +0100 Subject: [PATCH] Minor tweak to the test --- UI/GPUDriverTestScreen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/GPUDriverTestScreen.cpp b/UI/GPUDriverTestScreen.cpp index 1a737b0325..bd9f0aa7ab 100644 --- a/UI/GPUDriverTestScreen.cpp +++ b/UI/GPUDriverTestScreen.cpp @@ -128,6 +128,7 @@ void GPUDriverTestScreen::DiscardTest() { // Write only stencil. dsDesc.stencilEnabled = true; dsDesc.depthTestEnabled = false; + dsDesc.depthWriteEnabled = false; // Just in case the driver is crazy. when test is enabled, though, this should be ignored. DepthStencilState *stencilWrite = draw->CreateDepthStencilState(dsDesc); // Now for the shaders that read depth and/or stencil.