mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
- don't let environmental palettes (like underwater) affect the HUD and menu.
This commit is contained in:
parent
3d84384678
commit
99c4b6b6d7
2 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,7 @@
|
|||
#include "m_png.h"
|
||||
#include "printf.h"
|
||||
#include "templates.h"
|
||||
#include "palette.h"
|
||||
#include "glbackend/glbackend.h"
|
||||
|
||||
#include "gl_load/gl_interface.h"
|
||||
|
@ -431,7 +432,10 @@ void OpenGLFrameBuffer::Draw2D()
|
|||
GLRenderer->mBuffers->BindCurrentFB();
|
||||
::DrawFullscreenBlends();
|
||||
DrawRateStuff();
|
||||
auto savepal = curbasepal;
|
||||
if (!GLInterface.NonTransparent255Enabled()) curbasepal = 0;
|
||||
GLInterface.Draw2D(&twodgen);
|
||||
curbasepal = savepal;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -202,6 +202,10 @@ public:
|
|||
{
|
||||
g_nontransparent255 = on;
|
||||
}
|
||||
bool NonTransparent255Enabled()
|
||||
{
|
||||
return g_nontransparent255;
|
||||
}
|
||||
|
||||
void SetVertexBuffer(IVertexBuffer* vb, int offset1, int offset2);
|
||||
void SetIndexBuffer(IIndexBuffer* vb);
|
||||
|
|
Loading…
Reference in a new issue