Skip to content

Commit

Permalink
port: restore glReadBuffer value after changing it
Browse files Browse the repository at this point in the history
this might fix reshade
  • Loading branch information
fgsfdsfgs committed Nov 17, 2023
1 parent b618c99 commit 305e64a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions port/fast3d/gfx_opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,8 @@ void gfx_opengl_copy_framebuffer(int fb_dst, int fb_src, int left, int top, bool

glBindFramebuffer(GL_FRAMEBUFFER, framebuffers[current_framebuffer].fbo);

glReadBuffer(GL_BACK);

glEnable(GL_SCISSOR_TEST);
}

Expand Down

0 comments on commit 305e64a

Please sign in to comment.