Merge pull request #5243 from lioncash/move2

geometry_pipeline: std::move vertex handler in SetVertexHandler()
This commit is contained in:
Sebastian Valle 2020-04-19 21:48:48 -05:00 committed by GitHub
commit bcc80d0871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ GeometryPipeline::GeometryPipeline(State& state) : state(state) {}
GeometryPipeline::~GeometryPipeline() = default; GeometryPipeline::~GeometryPipeline() = default;
void GeometryPipeline::SetVertexHandler(Shader::VertexHandler vertex_handler) { void GeometryPipeline::SetVertexHandler(Shader::VertexHandler vertex_handler) {
this->vertex_handler = vertex_handler; this->vertex_handler = std::move(vertex_handler);
} }
void GeometryPipeline::Setup(Shader::ShaderEngine* shader_engine) { void GeometryPipeline::Setup(Shader::ShaderEngine* shader_engine) {