diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-15 00:50:06 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-15 00:50:06 +0200 |
commit | 1b41b875dcd24c662b947731f48f4d1c7131fa0b (patch) | |
tree | 57b8c1f1952c53d54a0c14b00543dd21302d661b /src/video_core/renderer_opengl/gl_shader_manager.cpp | |
parent | shaders: Address PR review feedback. (diff) | |
download | yuzu-1b41b875dcd24c662b947731f48f4d1c7131fa0b.tar yuzu-1b41b875dcd24c662b947731f48f4d1c7131fa0b.tar.gz yuzu-1b41b875dcd24c662b947731f48f4d1c7131fa0b.tar.bz2 yuzu-1b41b875dcd24c662b947731f48f4d1c7131fa0b.tar.lz yuzu-1b41b875dcd24c662b947731f48f4d1c7131fa0b.tar.xz yuzu-1b41b875dcd24c662b947731f48f4d1c7131fa0b.tar.zst yuzu-1b41b875dcd24c662b947731f48f4d1c7131fa0b.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_manager.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.cpp b/src/video_core/renderer_opengl/gl_shader_manager.cpp index 67f2be056..7fceedce8 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.cpp +++ b/src/video_core/renderer_opengl/gl_shader_manager.cpp @@ -38,7 +38,7 @@ void SetShaderSamplerBindings(GLuint shader) { cur_state.Apply(); // Set the texture samplers to correspond to different texture units - for (u32 texture = 0; texture < 32; ++texture) { + for (u32 texture = 0; texture < NumTextureSamplers; ++texture) { // Set the texture samplers to correspond to different texture units std::string uniform_name = "tex[" + std::to_string(texture) + "]"; GLint uniform_tex = glGetUniformLocation(shader, uniform_name.c_str()); |