diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2017-06-02 20:33:26 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2017-11-17 22:11:28 -0600 |
| commit | 198d3b69b43b19685b4d4bed0173ebf2b2db9f0a (patch) | |
| tree | 678d0aee7c2ce10d8c26ee4056f63e0e137bbda5 /Source/Core/VideoBackends/OGL/Render.cpp | |
| parent | a9f0d1783bdf00e6610d314c48d8c16cf9439a1f (diff) | |
Add ability to dump xfb copies to texture for debugging purposes
Diffstat (limited to 'Source/Core/VideoBackends/OGL/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/Render.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index e6c90d8c7e..e426b97ef6 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -1344,8 +1344,8 @@ void Renderer::SwapImpl(AbstractTexture* texture, const EFBRectangle& rc, u64 ti TargetRectangle sourceRc = ConvertEFBRectangle(rc); sourceRc.left = 0; - sourceRc.right = xfb_texture->config.width; - sourceRc.top = xfb_texture->config.height; + sourceRc.right = xfb_texture->GetConfig().width; + sourceRc.top = xfb_texture->GetConfig().height; sourceRc.bottom = 0; ResetAPIState(); @@ -1358,7 +1358,7 @@ void Renderer::SwapImpl(AbstractTexture* texture, const EFBRectangle& rc, u64 ti // Copy the framebuffer to screen. glBindFramebuffer(GL_FRAMEBUFFER, 0); - BlitScreen(sourceRc, flipped_trc, xfb_texture->GetRawTexIdentifier(), xfb_texture->config.width, xfb_texture->config.height); + BlitScreen(sourceRc, flipped_trc, xfb_texture->GetRawTexIdentifier(), xfb_texture->GetConfig().width, xfb_texture->GetConfig().height); // The FlushFrameDump call here is necessary even after frame dumping is stopped. // If left out, screenshots are "one frame" behind, as an extra frame is dumped and buffered. @@ -1383,7 +1383,7 @@ void Renderer::SwapImpl(AbstractTexture* texture, const EFBRectangle& rc, u64 ti // Finish up the current frame, print some stats - SetWindowSize(xfb_texture->config.width, xfb_texture->config.height); + SetWindowSize(xfb_texture->GetConfig().width, xfb_texture->GetConfig().height); GLInterface->Update(); // just updates the render window position and the backbuffer size |
