mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-02 22:01:41 +00:00
Fix softpoly null pointer crash
This commit is contained in:
parent
fe3751a502
commit
6c3fd3cc4d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue