summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger/graphics_framebuffer.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-03-09 03:31:15 +0100
committerSubv <subv2112@gmail.com>2015-03-10 02:13:21 +0100
commit1248e291f0c9a29734b0f5175df8fa675cce930c (patch)
tree18218cbe496e5a2f42022a5e6741fa0665218874 /src/citra_qt/debugger/graphics_framebuffer.cpp
parentFrontend/Qt: Allow the framebuffer widget to inspect the depth buffer (diff)
downloadyuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.gz
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.bz2
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.lz
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.xz
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.zst
yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.zip
Diffstat (limited to 'src/citra_qt/debugger/graphics_framebuffer.cpp')
-rw-r--r--src/citra_qt/debugger/graphics_framebuffer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/citra_qt/debugger/graphics_framebuffer.cpp b/src/citra_qt/debugger/graphics_framebuffer.cpp
index 2985cadb1..d621d7204 100644
--- a/src/citra_qt/debugger/graphics_framebuffer.cpp
+++ b/src/citra_qt/debugger/graphics_framebuffer.cpp
@@ -176,7 +176,7 @@ void GraphicsFramebufferWidget::OnUpdate()
{
// TODO: Store a reference to the registers in the debug context instead of accessing them directly...
- auto framebuffer = Pica::registers.framebuffer;
+ const auto& framebuffer = Pica::registers.framebuffer;
framebuffer_address = framebuffer.GetColorBufferPhysicalAddress();
framebuffer_width = framebuffer.GetWidth();
@@ -189,7 +189,7 @@ void GraphicsFramebufferWidget::OnUpdate()
case Source::DepthBuffer:
{
- auto framebuffer = Pica::registers.framebuffer;
+ const auto& framebuffer = Pica::registers.framebuffer;
framebuffer_address = framebuffer.GetDepthBufferPhysicalAddress();
framebuffer_width = framebuffer.GetWidth();
@@ -294,4 +294,4 @@ u32 GraphicsFramebufferWidget::BytesPerPixel(GraphicsFramebufferWidget::Format f
case Format::D16:
return 2;
}
-} \ No newline at end of file
+}