diff options
author | Subv <subv2112@gmail.com> | 2016-11-20 01:27:00 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2016-11-20 01:27:00 +0100 |
commit | 050e9be15bfff915d1e8636551c254dab59bd7a3 (patch) | |
tree | 146134e1a57f6dd510865162d4bf4a10c7d498b9 | |
parent | Merge pull request #2172 from jroweboy/fix-mingw (diff) | |
download | yuzu-050e9be15bfff915d1e8636551c254dab59bd7a3.tar yuzu-050e9be15bfff915d1e8636551c254dab59bd7a3.tar.gz yuzu-050e9be15bfff915d1e8636551c254dab59bd7a3.tar.bz2 yuzu-050e9be15bfff915d1e8636551c254dab59bd7a3.tar.lz yuzu-050e9be15bfff915d1e8636551c254dab59bd7a3.tar.xz yuzu-050e9be15bfff915d1e8636551c254dab59bd7a3.tar.zst yuzu-050e9be15bfff915d1e8636551c254dab59bd7a3.zip |
-rw-r--r-- | src/video_core/command_processor.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index fda91e29c..45585fe30 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -215,18 +215,17 @@ static void WritePicaReg(u32 id, u32 value, u32 mask) { PrimitiveAssembler<Shader::OutputVertex>& primitive_assembler = g_state.primitive_assembler; - if (g_debug_context) { + if (g_debug_context && g_debug_context->recorder) { for (int i = 0; i < 3; ++i) { const auto texture = regs.GetTextures()[i]; if (!texture.enabled) continue; u8* texture_data = Memory::GetPhysicalPointer(texture.config.GetPhysicalAddress()); - if (g_debug_context && Pica::g_debug_context->recorder) - g_debug_context->recorder->MemoryAccessed( - texture_data, Pica::Regs::NibblesPerPixel(texture.format) * - texture.config.width / 2 * texture.config.height, - texture.config.GetPhysicalAddress()); + g_debug_context->recorder->MemoryAccessed( + texture_data, Pica::Regs::NibblesPerPixel(texture.format) * + texture.config.width / 2 * texture.config.height, + texture.config.GetPhysicalAddress()); } } |