From e17d872356f1dc828b027fbc42bd8b46645e5c6f Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Thu, 7 May 2020 20:51:45 +0100 Subject: [PATCH] Fix an issue where the 'Xbox CreateDevice did not call SetRenderTarget' test case would be incorrectly flagged if no depth stencil was provided --- src/core/hle/D3D8/Direct3D9/Direct3D9.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp index 5fb217d42..da208b1f5 100644 --- a/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp +++ b/src/core/hle/D3D8/Direct3D9/Direct3D9.cpp @@ -2962,7 +2962,7 @@ void Direct3D_CreateDevice_End() // We fix the situation by calling the Xbox GetRenderTarget function, which immediately after CreateDevice // WILL always return the Backbuffer! // Test Case: Shin Megami Tensei: Nine - if (g_pXbox_BackBufferSurface == xbnullptr || g_pXbox_DefaultDepthStencilSurface == xbnullptr) { + if (g_pXbox_BackBufferSurface == xbnullptr && g_pXbox_DefaultDepthStencilSurface == xbnullptr) { // First, log the test case LOG_TEST_CASE("Xbox CreateDevice did not call SetRenderTarget"); }