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:
Daniel Gibson 2024-06-03 11:39:28 +02:00
parent 7aa6c6a70f
commit 28d81ed5f5

View file

@ -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();