فهرست منبع

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;