aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/renderer_base.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-07-26 01:52:33 -0400
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-28 21:46:08 -0400
commit7ac99bb127fe6c09794b7e7ebe4d1c518817f40a (patch)
tree7ed5381e6e328611773754fb8a800559c7e0b692 /src/video_core/renderer_base.cpp
parent75e7f54fb0532bdfcb95c7e068c13b601d72b787 (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.cpp2
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");