mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	geometry_pipeline: std::move vertex handler in SetVertexHandler()
std::function is allowed to internally allocate, so this prevents potential reallocations from occurring, should that case ever happen.
This commit is contained in:
		
							parent
							
								
									397bd1bb73
								
							
						
					
					
						commit
						12d4c835db
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue