mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 10:43:05 +00:00
gl_rasterizer: Replace push_back calls with emplace_back in AddTriangle
This commit is contained in:
parent
9205aca95c
commit
7b72b71605
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue