From 7b72b716050df7dbdfd8bf949fe7f1dfa737aed7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 10 Sep 2015 00:20:30 -0400 Subject: gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle --- src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/video_core') diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 0260a28ce..62ca18317 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -212,9 +212,9 @@ void RasterizerOpenGL::Reset() { void RasterizerOpenGL::AddTriangle(const Pica::Shader::OutputVertex& v0, const Pica::Shader::OutputVertex& v1, const Pica::Shader::OutputVertex& v2) { - vertex_batch.push_back(HardwareVertex(v0)); - vertex_batch.push_back(HardwareVertex(v1)); - vertex_batch.push_back(HardwareVertex(v2)); + vertex_batch.emplace_back(v0); + vertex_batch.emplace_back(v1); + vertex_batch.emplace_back(v2); } void RasterizerOpenGL::DrawTriangles() { -- cgit v1.2.3