aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/gpu_debugger.h
diff options
context:
space:
mode:
authorGravatar Lioncash <mathew1800@gmail.com>2015-02-17 17:42:28 -0500
committerGravatar Lioncash <mathew1800@gmail.com>2015-02-17 17:57:23 -0500
commit5d2366e1e9adaa5b4275127dff5005f2ef2f8ff8 (patch)
treefbe9bc5f148ee6c5e0abf6a3c284f65d88d7731c /src/video_core/gpu_debugger.h
parent12181c8a64678e73281e893b6ba108d5a125c1aa (diff)
core/video_core: Use in-place construction where possible
Diffstat (limited to 'src/video_core/gpu_debugger.h')
-rw-r--r--src/video_core/gpu_debugger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h
index 03641d93..48ac269e 100644
--- a/src/video_core/gpu_debugger.h
+++ b/src/video_core/gpu_debugger.h
@@ -58,8 +58,8 @@ public:
if (observers.empty())
return;
- gx_command_history.push_back(GSP_GPU::Command());
- GSP_GPU::Command& cmd = gx_command_history[gx_command_history.size()-1];
+ gx_command_history.emplace_back();
+ GSP_GPU::Command& cmd = gx_command_history.back();
memcpy(&cmd, command_data, sizeof(GSP_GPU::Command));