From b10d242b8079fd63b59c85da7502728d92a23d07 Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Sun, 23 Aug 2020 11:52:04 -0500 Subject: [PATCH] fix pr 1945 normalize --- src/core/hle/D3D8/XbVertexBuffer.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/hle/D3D8/XbVertexBuffer.cpp b/src/core/hle/D3D8/XbVertexBuffer.cpp index fcefb05d5..b8696251a 100644 --- a/src/core/hle/D3D8/XbVertexBuffer.cpp +++ b/src/core/hle/D3D8/XbVertexBuffer.cpp @@ -382,14 +382,14 @@ void CxbxVertexBufferConverter::ConvertStream pNewHostVertexBuffer = nullptr; } } - - // If dwHostVertexDataSize is zero, the allocation/creation will fail - // This can be caused by a stride of 0, and 'other' invalid configurations - // Test Case :SSX series of games - if (dwHostVertexDataSize == 0) { - LOG_TEST_CASE("Attempted to use a 0 sized vertex stream"); - return; - } + + // If dwHostVertexDataSize is zero, the allocation/creation will fail + // This can be caused by a stride of 0, and 'other' invalid configurations + // Test Case :SSX series of games + if (dwHostVertexDataSize == 0) { + LOG_TEST_CASE("Attempted to use a 0 sized vertex stream"); + return; + } // Allocate new buffers if (pDrawContext->pXboxVertexStreamZeroData != xbnullptr) { @@ -398,7 +398,7 @@ void CxbxVertexBufferConverter::ConvertStream if (pHostVertexData == nullptr) { CxbxKrnlCleanup("Couldn't allocate the new stream zero buffer"); } - } else { + } else { HRESULT hRet = g_pD3DDevice->CreateVertexBuffer( dwHostVertexDataSize, D3DUSAGE_WRITEONLY | D3DUSAGE_DYNAMIC,