diff options
| author | 2015-03-08 21:31:15 -0500 | |
|---|---|---|
| committer | 2015-03-09 20:13:21 -0500 | |
| commit | 1248e291f0c9a29734b0f5175df8fa675cce930c (patch) | |
| tree | 18218cbe496e5a2f42022a5e6741fa0665218874 /src/citra_qt/debugger/graphics_framebuffer.cpp | |
| parent | Frontend/Qt: Allow the framebuffer widget to inspect the depth buffer (diff) | |
| download | yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.gz yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.tar.xz yuzu-1248e291f0c9a29734b0f5175df8fa675cce930c.zip | |
GPU: Added the stencil test structure to the Pica Regs struct.
Diffstat (limited to 'src/citra_qt/debugger/graphics_framebuffer.cpp')
| -rw-r--r-- | src/citra_qt/debugger/graphics_framebuffer.cpp | 6 |
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() | |||
| 176 | { | 176 | { |
| 177 | // TODO: Store a reference to the registers in the debug context instead of accessing them directly... | 177 | // TODO: Store a reference to the registers in the debug context instead of accessing them directly... |
| 178 | 178 | ||
| 179 | auto framebuffer = Pica::registers.framebuffer; | 179 | const auto& framebuffer = Pica::registers.framebuffer; |
| 180 | 180 | ||
| 181 | framebuffer_address = framebuffer.GetColorBufferPhysicalAddress(); | 181 | framebuffer_address = framebuffer.GetColorBufferPhysicalAddress(); |
| 182 | framebuffer_width = framebuffer.GetWidth(); | 182 | framebuffer_width = framebuffer.GetWidth(); |
| @@ -189,7 +189,7 @@ void GraphicsFramebufferWidget::OnUpdate() | |||
| 189 | 189 | ||
| 190 | case Source::DepthBuffer: | 190 | case Source::DepthBuffer: |
| 191 | { | 191 | { |
| 192 | auto framebuffer = Pica::registers.framebuffer; | 192 | const auto& framebuffer = Pica::registers.framebuffer; |
| 193 | 193 | ||
| 194 | framebuffer_address = framebuffer.GetDepthBufferPhysicalAddress(); | 194 | framebuffer_address = framebuffer.GetDepthBufferPhysicalAddress(); |
| 195 | framebuffer_width = framebuffer.GetWidth(); | 195 | framebuffer_width = framebuffer.GetWidth(); |
| @@ -294,4 +294,4 @@ u32 GraphicsFramebufferWidget::BytesPerPixel(GraphicsFramebufferWidget::Format f | |||
| 294 | case Format::D16: | 294 | case Format::D16: |
| 295 | return 2; | 295 | return 2; |
| 296 | } | 296 | } |
| 297 | } \ No newline at end of file | 297 | } |