Merge pull request #1143 from jackchentwkh/master

skip push buffer rendering when there is no vertex data or possible non-FVF detected.
This commit is contained in:
Luke Usher 2018-05-08 13:17:53 +01:00 committed by GitHub
commit b62af3df20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -300,13 +300,16 @@ extern void XTL::EmuExecutePushBufferRaw
pVertexData = pdwPushData;
//move pushpuffer to the end of vertex data.
pdwPushData += dwCount;
if (dwCount == 0) {
continue;
}
// retrieve vertex shader
DWORD dwVertexShader = g_CurrentXboxVertexShaderHandle;
if (VshHandleIsVertexShader(dwVertexShader))
{
EmuWarning("Non-FVF Vertex Shaders not yet supported for PushBuffer emulation!");
continue;
}
if(dwVertexShader == 0)
{