- 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:
Christoph Oelckers 2019-12-26 17:42:45 +01:00
parent f77736ccb4
commit 68a3a60d0b
9 changed files with 41 additions and 12 deletions

View file

@ -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];