diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-26 01:52:33 -0400 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-28 21:46:08 -0400 |
commit | 7ac99bb127fe6c09794b7e7ebe4d1c518817f40a (patch) | |
tree | 7ed5381e6e328611773754fb8a800559c7e0b692 /src/video_core/renderer_base.cpp | |
parent | 75e7f54fb0532bdfcb95c7e068c13b601d72b787 (diff) |
renderers: Add explicit invert_y bool to screenshot callback
OpenGL and Vulkan images render in different coordinate systems. This allows us to specify the coordinate system of the screenshot within each renderer
Diffstat (limited to 'src/video_core/renderer_base.cpp')
-rw-r--r-- | src/video_core/renderer_base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_base.cpp b/src/video_core/renderer_base.cpp index 3ea72fda9f..a99c33c377 100644 --- a/src/video_core/renderer_base.cpp +++ b/src/video_core/renderer_base.cpp @@ -27,7 +27,7 @@ void RendererBase::UpdateCurrentFramebufferLayout() { render_window.UpdateCurrentFramebufferLayout(layout.width, layout.height); } -void RendererBase::RequestScreenshot(void* data, std::function<void()> callback, +void RendererBase::RequestScreenshot(void* data, std::function<void(bool)> callback, const Layout::FramebufferLayout& layout) { if (renderer_settings.screenshot_requested) { LOG_ERROR(Render, "A screenshot is already requested or in progress, ignoring the request"); |