Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
555d76d065
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;