Explorar o código

gl_state: Fixup multibind bug

ReinUsesLisp %!s(int64=7) %!d(string=hai) anos
pai
achega
bb3ab7d66c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/video_core/renderer_opengl/gl_state.cpp

+ 2 - 2
src/video_core/renderer_opengl/gl_state.cpp

@@ -461,7 +461,7 @@ void OpenGLState::ApplyTextures() const {
 
     if (has_delta) {
         glBindTextures(static_cast<GLuint>(first), static_cast<GLsizei>(last - first + 1),
-                       textures.data());
+                       textures.data() + first);
     }
 }
 
@@ -482,7 +482,7 @@ void OpenGLState::ApplySamplers() const {
     }
     if (has_delta) {
         glBindSamplers(static_cast<GLuint>(first), static_cast<GLsizei>(last - first + 1),
-                       samplers.data());
+                       samplers.data() + first);
     }
 }