mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 04:50:48 +00:00
- fixed: The stencil cap drawer did not properly advance the vertex pointer.
This commit is contained in:
parent
342f1abcc7
commit
4a9b2bf76d
1 changed files with 10 additions and 8 deletions
|
@ -154,15 +154,17 @@ void GLPortal::DrawPortalStencil()
|
||||||
// Cap the stencil at the top and bottom
|
// Cap the stencil at the top and bottom
|
||||||
int n = lines.Size() * 2;
|
int n = lines.Size() * 2;
|
||||||
FFlatVertex *ptr = GLRenderer->mVBO->GetBuffer();
|
FFlatVertex *ptr = GLRenderer->mVBO->GetBuffer();
|
||||||
ptr->Set(-32767.0f, 32767.0f, -32767.0f, 0, 0);
|
ptr[0].Set(-32767.0f, 32767.0f, -32767.0f, 0, 0);
|
||||||
ptr->Set(-32767.0f, 32767.0f, 32767.0f, 0, 0);
|
ptr[1].Set(-32767.0f, 32767.0f, 32767.0f, 0, 0);
|
||||||
ptr->Set(32767.0f, 32767.0f, 32767.0f, 0, 0);
|
ptr[2].Set(32767.0f, 32767.0f, 32767.0f, 0, 0);
|
||||||
ptr->Set(32767.0f, 32767.0f, -32767.0f, 0, 0);
|
ptr[3].Set(32767.0f, 32767.0f, -32767.0f, 0, 0);
|
||||||
|
ptr += 4;
|
||||||
mPrimIndices[n + 1] = GLRenderer->mVBO->GetCount(ptr, &mPrimIndices[n]);
|
mPrimIndices[n + 1] = GLRenderer->mVBO->GetCount(ptr, &mPrimIndices[n]);
|
||||||
ptr->Set(-32767.0f, -32767.0f, -32767.0f, 0, 0);
|
ptr[0].Set(-32767.0f, -32767.0f, -32767.0f, 0, 0);
|
||||||
ptr->Set(-32767.0f, -32767.0f, 32767.0f, 0, 0);
|
ptr[1].Set(-32767.0f, -32767.0f, 32767.0f, 0, 0);
|
||||||
ptr->Set(32767.0f, -32767.0f, 32767.0f, 0, 0);
|
ptr[2].Set(32767.0f, -32767.0f, 32767.0f, 0, 0);
|
||||||
ptr->Set(32767.0f, -32767.0f, -32767.0f, 0, 0);
|
ptr[3].Set(32767.0f, -32767.0f, -32767.0f, 0, 0);
|
||||||
|
ptr += 4;
|
||||||
mPrimIndices[n + 3] = GLRenderer->mVBO->GetCount(ptr, &mPrimIndices[n + 2]);
|
mPrimIndices[n + 3] = GLRenderer->mVBO->GetCount(ptr, &mPrimIndices[n + 2]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue