瀏覽代碼

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;