Explorar el Código

Merge pull request #909 from lioncash/const

gl_shader_manager: Make ProgramManager's GetCurrentProgramStage() a const member function
bunnei hace 8 años
padre
commit
64806a8397
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
         return result;
     }
     }
 
 
-    GLuint GetCurrentProgramStage(Maxwell3D::Regs::ShaderStage stage) {
+    GLuint GetCurrentProgramStage(Maxwell3D::Regs::ShaderStage stage) const {
         switch (stage) {
         switch (stage) {
         case Maxwell3D::Regs::ShaderStage::Vertex:
         case Maxwell3D::Regs::ShaderStage::Vertex:
             return current.vs;
             return current.vs;