summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-02-28 07:22:00 +0100
committerGitHub <noreply@github.com>2020-02-28 07:22:00 +0100
commitc7db1ef5653b783980ebea8e65b175e36cc5f870 (patch)
tree526f2fc329f2fe955c7a3f1884f8abba213465ea /src
parentMerge pull request #3430 from bunnei/split-presenter (diff)
parentrenderer_opengl: Fix SRGB presentation frame tracking. (diff)
downloadyuzu-c7db1ef5653b783980ebea8e65b175e36cc5f870.tar
yuzu-c7db1ef5653b783980ebea8e65b175e36cc5f870.tar.gz
yuzu-c7db1ef5653b783980ebea8e65b175e36cc5f870.tar.bz2
yuzu-c7db1ef5653b783980ebea8e65b175e36cc5f870.tar.lz
yuzu-c7db1ef5653b783980ebea8e65b175e36cc5f870.tar.xz
yuzu-c7db1ef5653b783980ebea8e65b175e36cc5f870.tar.zst
yuzu-c7db1ef5653b783980ebea8e65b175e36cc5f870.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp4
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.h3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 447f69d4d..a4340b502 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -353,9 +353,9 @@ void RendererOpenGL::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) {
// Recreate the frame if the size of the window has changed
if (layout.width != frame->width || layout.height != frame->height ||
- is_srgb != frame->is_srgb) {
+ screen_info.display_srgb != frame->is_srgb) {
LOG_DEBUG(Render_OpenGL, "Reloading render frame");
- is_srgb = frame->is_srgb = screen_info.display_srgb;
+ frame->is_srgb = screen_info.display_srgb;
frame_mailbox->ReloadRenderFrame(frame, layout.width, layout.height);
}
state.draw.draw_framebuffer = frame->render.handle;
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h
index 4107e10a9..d45e69cbc 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.h
+++ b/src/video_core/renderer_opengl/renderer_opengl.h
@@ -111,9 +111,6 @@ private:
Tegra::FramebufferConfig::TransformFlags framebuffer_transform_flags;
Common::Rectangle<int> framebuffer_crop_rect;
- /// Represents if the final render frame is sRGB
- bool is_srgb{};
-
/// Frame presentation mailbox
std::unique_ptr<FrameMailbox> frame_mailbox;
};