summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-06-20 18:39:10 +0200
committerSubv <subv2112@gmail.com>2018-06-20 18:39:10 +0200
commita3d82ef5d90b02a256087edf9c0124b51b059c18 (patch)
tree859f41acecbdcfcbdf19df80903a045d6e2b0bcb /src/video_core/renderer_opengl/gl_state.cpp
parentImplement GetAvailableLanguageCodes2 (#575) (diff)
downloadyuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.gz
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.bz2
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.lz
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.xz
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.tar.zst
yuzu-a3d82ef5d90b02a256087edf9c0124b51b059c18.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp
index 44f0c8a01..1f1e48425 100644
--- a/src/video_core/renderer_opengl/gl_state.cpp
+++ b/src/video_core/renderer_opengl/gl_state.cpp
@@ -196,13 +196,13 @@ void OpenGLState::Apply() const {
}
// Textures
- for (size_t i = 0; i < std::size(texture_units); ++i) {
+ for (int i = 0; i < std::size(texture_units); ++i) {
if (texture_units[i].texture_2d != cur_state.texture_units[i].texture_2d) {
glActiveTexture(TextureUnits::MaxwellTexture(i).Enum());
glBindTexture(GL_TEXTURE_2D, texture_units[i].texture_2d);
}
if (texture_units[i].sampler != cur_state.texture_units[i].sampler) {
- glBindSampler(i, texture_units[i].sampler);
+ glBindSampler(static_cast<GLuint>(i), texture_units[i].sampler);
}
// Update the texture swizzle
if (texture_units[i].swizzle.r != cur_state.texture_units[i].swizzle.r ||