From 3ad255df4be19615dc96d4fd8fde56640ab9863e Mon Sep 17 00:00:00 2001 From: revel8n Date: Thu, 23 Aug 2018 18:47:23 -0500 Subject: [PATCH] Fix for vertex declaration failures due to incorrectly handled Step size for VshConvertToken_CONSTMEM / D3DVSD_CONST fixes #1381 --- src/CxbxKrnl/EmuD3D8/VertexShader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CxbxKrnl/EmuD3D8/VertexShader.cpp b/src/CxbxKrnl/EmuD3D8/VertexShader.cpp index bd63f8824..e87827f45 100644 --- a/src/CxbxKrnl/EmuD3D8/VertexShader.cpp +++ b/src/CxbxKrnl/EmuD3D8/VertexShader.cpp @@ -1914,7 +1914,7 @@ static DWORD VshConvertToken_CONSTMEM( // TODO - return Count; + return Count * 4 + 1; } static void VshConvertToken_TESSELATOR(