summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu_debugger.h
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-05-18 21:18:38 +0200
committerbunnei <ericbunnie@gmail.com>2014-06-12 12:10:53 +0200
commitf82410e6335b02603c7a6fc0fc63894b6a820a5b (patch)
treee703a09ea87cd532ed24bea5067e5c26bcf2ac1a /src/video_core/gpu_debugger.h
parentRefine command list debugging functionality and its qt interface. (diff)
downloadyuzu-f82410e6335b02603c7a6fc0fc63894b6a820a5b.tar
yuzu-f82410e6335b02603c7a6fc0fc63894b6a820a5b.tar.gz
yuzu-f82410e6335b02603c7a6fc0fc63894b6a820a5b.tar.bz2
yuzu-f82410e6335b02603c7a6fc0fc63894b6a820a5b.tar.lz
yuzu-f82410e6335b02603c7a6fc0fc63894b6a820a5b.tar.xz
yuzu-f82410e6335b02603c7a6fc0fc63894b6a820a5b.tar.zst
yuzu-f82410e6335b02603c7a6fc0fc63894b6a820a5b.zip
Diffstat (limited to 'src/video_core/gpu_debugger.h')
-rw-r--r--src/video_core/gpu_debugger.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h
index 5ece0a8b7..6a1e04244 100644
--- a/src/video_core/gpu_debugger.h
+++ b/src/video_core/gpu_debugger.h
@@ -100,6 +100,7 @@ public:
auto& cmd = cmdlist.back();
size_t size = 2 + header.extra_data_length;
+ size = (size + 1) / 2 * 2; // align to 8 bytes
cmd.reserve(size);
std::copy(parse_pointer, parse_pointer + size, std::back_inserter(cmd));