summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-09-10 21:07:06 +0200
committerbunnei <bunneidev@gmail.com>2015-09-10 21:07:06 +0200
commita008b286592ad4b0d0f398ae67a404a1ed3b91f8 (patch)
tree78f1f1d3fb5245d4fd19e32e05c0c360efe6ae40
parentMerge pull request #1136 from lioncash/proto (diff)
parentgl_rasterizer: Replace push_back calls with emplace_back in AddTriangle (diff)
downloadyuzu-a008b286592ad4b0d0f398ae67a404a1ed3b91f8.tar
yuzu-a008b286592ad4b0d0f398ae67a404a1ed3b91f8.tar.gz
yuzu-a008b286592ad4b0d0f398ae67a404a1ed3b91f8.tar.bz2
yuzu-a008b286592ad4b0d0f398ae67a404a1ed3b91f8.tar.lz
yuzu-a008b286592ad4b0d0f398ae67a404a1ed3b91f8.tar.xz
yuzu-a008b286592ad4b0d0f398ae67a404a1ed3b91f8.tar.zst
yuzu-a008b286592ad4b0d0f398ae67a404a1ed3b91f8.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp6
1 files changed, 3 insertions, 3 deletions
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() {