summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-06-24 21:27:18 +0200
committerTony Wasserka <NeoBrainX@gmail.com>2014-07-22 22:27:27 +0200
commita4d89edd9b9d89f31308ee202f1f20a3ef033f0b (patch)
tree90f87b1f83d89bfb306e0f7af83f363b3f367130 /src/video_core
parentMerge pull request #32 from yuriks/master (diff)
downloadyuzu-a4d89edd9b9d89f31308ee202f1f20a3ef033f0b.tar
yuzu-a4d89edd9b9d89f31308ee202f1f20a3ef033f0b.tar.gz
yuzu-a4d89edd9b9d89f31308ee202f1f20a3ef033f0b.tar.bz2
yuzu-a4d89edd9b9d89f31308ee202f1f20a3ef033f0b.tar.lz
yuzu-a4d89edd9b9d89f31308ee202f1f20a3ef033f0b.tar.xz
yuzu-a4d89edd9b9d89f31308ee202f1f20a3ef033f0b.tar.zst
yuzu-a4d89edd9b9d89f31308ee202f1f20a3ef033f0b.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/gpu_debugger.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h
index 5d909beba..ca1fb22d7 100644
--- a/src/video_core/gpu_debugger.h
+++ b/src/video_core/gpu_debugger.h
@@ -78,6 +78,9 @@ public:
void GXCommandProcessed(u8* command_data)
{
+ if (observers.empty())
+ return;
+
gx_command_history.push_back(GSP_GPU::GXCommand());
GSP_GPU::GXCommand& cmd = gx_command_history[gx_command_history.size()-1];
@@ -91,6 +94,9 @@ public:
void CommandListCalled(u32 address, u32* command_list, u32 size_in_words)
{
+ if (observers.empty())
+ return;
+
PicaCommandList cmdlist;
for (u32* parse_pointer = command_list; parse_pointer < command_list + size_in_words;)
{