diff options
| author | 2018-08-03 12:08:15 -0400 | |
|---|---|---|
| committer | 2018-08-03 12:08:17 -0400 | |
| commit | 555d76d065ccc50a5e22f5a6e73a480e7998e6ca (patch) | |
| tree | 676d388c5fd7fc630b2d79af50c7bac11677dd0b /src | |
| parent | Added ability to change username & language code in the settings ui. Added IP... (diff) | |
| download | yuzu-555d76d065ccc50a5e22f5a6e73a480e7998e6ca.tar.gz yuzu-555d76d065ccc50a5e22f5a6e73a480e7998e6ca.tar.xz yuzu-555d76d065ccc50a5e22f5a6e73a480e7998e6ca.zip | |
gl_shader_manager: Make ProgramManager's GetCurrentProgramStage() a const member function
This function doesn't modify class state, so it can be made const.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_manager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.h b/src/video_core/renderer_opengl/gl_shader_manager.h index 2214c348a..716933a0b 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.h +++ b/src/video_core/renderer_opengl/gl_shader_manager.h | |||
| @@ -118,7 +118,7 @@ public: | |||
| 118 | return result; | 118 | return result; |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | GLuint GetCurrentProgramStage(Maxwell3D::Regs::ShaderStage stage) { | 121 | GLuint GetCurrentProgramStage(Maxwell3D::Regs::ShaderStage stage) const { |
| 122 | switch (stage) { | 122 | switch (stage) { |
| 123 | case Maxwell3D::Regs::ShaderStage::Vertex: | 123 | case Maxwell3D::Regs::ShaderStage::Vertex: |
| 124 | return current.vs; | 124 | return current.vs; |