aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/debug_utils/debug_utils.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-05-22 23:27:41 -0400
committerbunnei <bunneidev@gmail.com>2015-05-22 23:27:41 -0400
commita7946f9027a87da93cd76ec46d54cadf4203b082 (patch)
tree01e98e937a3ed9d8c65b270df016658f8ae89a97 /src/video_core/debug_utils/debug_utils.cpp
parent41531eeb32ef86f4b04af2f5fda85148a87c56ad (diff)
parent1b42d55a9dcb27ac2374de0ed0d1d0ec8385b13e (diff)
Merge pull request #776 from bunnei/pica-state
GPU: Consolidate Pica state
Diffstat (limited to 'src/video_core/debug_utils/debug_utils.cpp')
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp
index 9da44ccd6..7987b922c 100644
--- a/src/video_core/debug_utils/debug_utils.cpp
+++ b/src/video_core/debug_utils/debug_utils.cpp
@@ -632,7 +632,7 @@ void DumpTexture(const Pica::Regs::TextureConfig& texture_config, u8* data) {
info.width = texture_config.width;
info.height = texture_config.height;
info.stride = row_stride;
- info.format = registers.texture0_format;
+ info.format = g_state.regs.texture0_format;
Math::Vec4<u8> texture_color = LookupTexture(data, x, y, info);
buf[3 * x + y * row_stride ] = texture_color.r();
buf[3 * x + y * row_stride + 1] = texture_color.g();