Преглед изворни кода

gl_shader_manager: Make ProgramManager's GetCurrentProgramStage() a const member function

This function doesn't modify class state, so it can be made const.
Lioncash пре 8 година
родитељ
комит
555d76d065
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/video_core/renderer_opengl/gl_shader_manager.h

+ 1 - 1
src/video_core/renderer_opengl/gl_shader_manager.h

@@ -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;