mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- Exhumed menu tweaks - draw a background and caption for the option menus the game originally did not have.
- fixed a crash in the 2D drawer when two consecutively allocated vertex buffers had the same address. Strangely this only occured with Exhumed but not the other games - fixed Exhumed crashing with sound disabled.
This commit is contained in:
parent
f77736ccb4
commit
68a3a60d0b
9 changed files with 41 additions and 12 deletions
|
@ -256,6 +256,15 @@ public:
|
|||
{
|
||||
renderState.IndexBuffer = vb;
|
||||
}
|
||||
void ClearBufferState()
|
||||
{
|
||||
SetVertexBuffer(nullptr, 0, 0);
|
||||
SetIndexBuffer(nullptr);
|
||||
// Invalidate the pointers as well to make sure that if another buffer with the same address is used it actually gets bound.
|
||||
LastVertexBuffer = (IVertexBuffer*)~intptr_t(0);
|
||||
LastIndexBuffer = (IIndexBuffer*)~intptr_t(0);
|
||||
}
|
||||
|
||||
const VSMatrix &GetMatrix(int num)
|
||||
{
|
||||
return matrices[num];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue