mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-03 16:39:01 -06:00 
			
		
		
		
	gl_shader_manager: Make ProgramManager's GetCurrentProgramStage() a const member function
This function doesn't modify class state, so it can be made const.
This commit is contained in:
		@@ -118,7 +118,7 @@ public:
 | 
				
			|||||||
        return result;
 | 
					        return result;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    GLuint GetCurrentProgramStage(Maxwell3D::Regs::ShaderStage stage) {
 | 
					    GLuint GetCurrentProgramStage(Maxwell3D::Regs::ShaderStage stage) const {
 | 
				
			||||||
        switch (stage) {
 | 
					        switch (stage) {
 | 
				
			||||||
        case Maxwell3D::Regs::ShaderStage::Vertex:
 | 
					        case Maxwell3D::Regs::ShaderStage::Vertex:
 | 
				
			||||||
            return current.vs;
 | 
					            return current.vs;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user