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
|
@ -118,6 +118,7 @@ void GLInstance::Draw2D(F2DDrawer *drawer)
|
|||
}
|
||||
F2DVertexBuffer vb;
|
||||
vb.UploadData(&vertices[0], vertices.Size(), &indices[0], indices.Size());
|
||||
assert(vb.GetBufferObjects().first && vb.GetBufferObjects().second);
|
||||
SetVertexBuffer(vb.GetBufferObjects().first, 0, 0);
|
||||
SetIndexBuffer(vb.GetBufferObjects().second);
|
||||
SetFadeDisable(true);
|
||||
|
@ -210,8 +211,7 @@ void GLInstance::Draw2D(F2DDrawer *drawer)
|
|||
//state.SetScissor(-1, -1, -1, -1);
|
||||
|
||||
//state.SetRenderStyle(STYLE_Translucent);
|
||||
SetVertexBuffer(nullptr, 0, 0);
|
||||
SetIndexBuffer(nullptr);
|
||||
ClearBufferState();
|
||||
UseColorOnly(false);
|
||||
//state.EnableBrightmap(true);
|
||||
//state.SetTextureMode(TM_NORMAL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue