summaryrefslogtreecommitdiffstats
path: root/src/video_core/debug_utils/debug_utils.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-08-23 22:26:17 +0200
committerSubv <subv2112@gmail.com>2015-08-23 22:26:17 +0200
commitd1b9383d865eb6be7f5e0a340312de96deff6975 (patch)
tree93307d5660c4f132c68e1d5481e04b2da78ed647 /src/video_core/debug_utils/debug_utils.cpp
parentMerge pull request #1038 from LittleWhite-tb/contributing-include (diff)
downloadyuzu-d1b9383d865eb6be7f5e0a340312de96deff6975.tar
yuzu-d1b9383d865eb6be7f5e0a340312de96deff6975.tar.gz
yuzu-d1b9383d865eb6be7f5e0a340312de96deff6975.tar.bz2
yuzu-d1b9383d865eb6be7f5e0a340312de96deff6975.tar.lz
yuzu-d1b9383d865eb6be7f5e0a340312de96deff6975.tar.xz
yuzu-d1b9383d865eb6be7f5e0a340312de96deff6975.tar.zst
yuzu-d1b9383d865eb6be7f5e0a340312de96deff6975.zip
Diffstat (limited to 'src/video_core/debug_utils/debug_utils.cpp')
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp
index 8ad77f0c8..059445f7d 100644
--- a/src/video_core/debug_utils/debug_utils.cpp
+++ b/src/video_core/debug_utils/debug_utils.cpp
@@ -25,6 +25,8 @@
#include "common/math_util.h"
#include "common/vector_math.h"
+#include "core/settings.h"
+
#include "video_core/pica.h"
#include "video_core/renderer_base.h"
#include "video_core/utils.h"
@@ -45,8 +47,10 @@ void DebugContext::OnEvent(Event event, void* data) {
{
std::unique_lock<std::mutex> lock(breakpoint_mutex);
- // Commit the hardware renderer's framebuffer so it will show on debug widgets
- VideoCore::g_renderer->hw_rasterizer->CommitFramebuffer();
+ if (Settings::values.use_hw_renderer) {
+ // Commit the hardware renderer's framebuffer so it will show on debug widgets
+ VideoCore::g_renderer->hw_rasterizer->CommitFramebuffer();
+ }
// TODO: Should stop the CPU thread here once we multithread emulation.