From 203c601e95fcd1c1c320afaef62cc6e64b985222 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Mon, 28 Sep 2015 12:26:11 -0700 Subject: [PATCH] Fix for bad textures when using _glActiveBindTexture --- libraries/gpu/src/gpu/GLBackend.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/gpu/src/gpu/GLBackend.cpp b/libraries/gpu/src/gpu/GLBackend.cpp index e8bc32d567..aac2d63a9b 100644 --- a/libraries/gpu/src/gpu/GLBackend.cpp +++ b/libraries/gpu/src/gpu/GLBackend.cpp @@ -418,6 +418,8 @@ void GLBackend::resetStages() { #define DO_IT_NOW(call, offset) void Batch::_glActiveBindTexture(GLenum unit, GLenum target, GLuint texture) { + setResourceTexture(unit - GL_TEXTURE0, nullptr); + ADD_COMMAND_GL(glActiveBindTexture); _params.push_back(texture);