Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Dec 29, 2023
1 parent 17724be commit 518d783
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Quake/ig_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,23 @@ void IG_Render()

ImGui::Render();

GL_ClearBufferBindings();
// Fade screen a bit
glDisable(GL_ALPHA_TEST);
glDisable(GL_TEXTURE_2D);
glEnable(GL_BLEND);
glColor4f(0.0f, 0.0f, 0.0f, 0.25f);

glBegin(GL_QUADS);
glVertex2f(0.0f, 0.0f);
glVertex2f(glwidth, 0.0f);
glVertex2f(glwidth, glheight);
glVertex2f(0.0f, glheight);
glEnd();

glEnable(GL_TEXTURE_2D);
glDisable(GL_BLEND);

GL_ClearBufferBindings();

ImGui_ImplOpenGL2_RenderDrawData(ImGui::GetDrawData());

Expand Down

0 comments on commit 518d783

Please sign in to comment.