Skip to content

Commit

Permalink
Fix FBO issues in ""It's easier to aim", they said" effect
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedSnark committed Nov 15, 2024
1 parent 54789f7 commit 8592597
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GSChaos/CFeatureWideScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ bool CFeatureWideScreen::UseCustomDuration()

void CFeatureWideScreen::SwapBuffers()
{
int width = ImGui::GetIO().DisplaySize.x;
int height = ImGui::GetIO().DisplaySize.y;
int width = gImGui.m_vecRealDisplaySize.x;
int height = gImGui.m_vecRealDisplaySize.y;

glBlendFunc(GL_SRC_ALPHA, GL_ZERO);
glEnable(GL_BLEND);
Expand All @@ -64,6 +64,8 @@ void CFeatureWideScreen::SwapBuffers()

glColor4f(1, 1, 1, 1);

glViewport(0, 0, gImGui.m_vecRealDisplaySize.x, gImGui.m_vecRealDisplaySize.y);

glBegin(GL_QUADS);
glTexCoord2f(0, 0);
glVertex3f(-1, 1, -1);
Expand Down

0 comments on commit 8592597

Please sign in to comment.