mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-29 07:32:25 +00:00
Fix ImGui with r_fillWindowAlphaChan
turns out ImGui also messes with the windows alpha chan, so, it must render before the alpha chan is filled
This commit is contained in:
parent
7aa6c6a70f
commit
28d81ed5f5
1 changed files with 2 additions and 2 deletions
|
@ -532,6 +532,8 @@ const void RB_SwapBuffers( const void *data ) {
|
|||
RB_ShowImages();
|
||||
}
|
||||
|
||||
D3::ImGuiHooks::EndFrame();
|
||||
|
||||
int fillAlpha = r_fillWindowAlphaChan.GetInteger();
|
||||
if ( fillAlpha == 1 || (fillAlpha == -1 && glConfig.shouldFillWindowAlpha) )
|
||||
{
|
||||
|
@ -598,8 +600,6 @@ const void RB_SwapBuffers( const void *data ) {
|
|||
qglEnable( GL_SCISSOR_TEST );
|
||||
}
|
||||
|
||||
D3::ImGuiHooks::EndFrame();
|
||||
|
||||
// force a gl sync if requested
|
||||
if ( r_finish.GetBool() ) {
|
||||
qglFinish();
|
||||
|
|
Loading…
Reference in a new issue