Merge pull request #909 from lioncash/const

gl_shader_manager: Make ProgramManager's GetCurrentProgramStage() a const member function
This commit is contained in:
bunnei 2018-08-03 14:07:30 -04:00 committed by GitHub
commit 64806a8397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ public:
return result;
}
GLuint GetCurrentProgramStage(Maxwell3D::Regs::ShaderStage stage) {
GLuint GetCurrentProgramStage(Maxwell3D::Regs::ShaderStage stage) const {
switch (stage) {
case Maxwell3D::Regs::ShaderStage::Vertex:
return current.vs;