Skip to content

Commit

Permalink
OpenGL: Fix OBS/Overlays again by binding FB before present (#4668)
Browse files Browse the repository at this point in the history
This seems to have been removed by the Post-Processing PR, but it is required for the display in OBS to be the right way up and properly scaled.

I've tested this with AA and FSR on MK8D and it seems to behave properly. Testing is welcome.
  • Loading branch information
riperiperi committed Apr 11, 2023
1 parent a4780ab commit 915d6d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Ryujinx.Graphics.OpenGL/Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ private void CopyTextureToFrameBufferRGB(int drawFramebuffer, int readFramebuffe
// Set clip control, viewport and the framebuffer to the output to placate overlays and OBS capture.
GL.ClipControl(ClipOrigin.LowerLeft, ClipDepthMode.NegativeOneToOne);
GL.Viewport(0, 0, _width, _height);
GL.BindFramebuffer(FramebufferTarget.Framebuffer, drawFramebuffer);

swapBuffersCallback();

Expand Down

0 comments on commit 915d6d0

Please sign in to comment.