Fix softpoly null pointer crash

This commit is contained in:
Magnus Norddahl 2022-07-25 00:53:31 +02:00 committed by Christoph Oelckers
parent fe3751a502
commit 6c3fd3cc4d

View file

@ -258,6 +258,9 @@ void PolyRenderState::Apply()
ApplyMaterial();
if (!mVertexBuffer)
SetVertexBuffer(screen->mVertexData);
if (mVertexBuffer)
{
mDrawCommands->SetVertexBuffer(mVertexBuffer->Memory(), mVertexOffsets[0], mVertexOffsets[1]); // [GEC] Add offset params