Reverted commit 8c64a0c (love.graphics.setCanvas(nil) erroring)

This commit is contained in:
Alex Szpakowski
2013-07-19 19:53:39 -03:00
parent cb0a974546
commit f41a2ed910
5 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -346,7 +346,7 @@ void Shader::attach(bool temporary)
}
// We always want to use texture unit 0 for everyhing else.
gl.setActiveTextureUnit(0);
gl.setTextureUnit(0);
}
}
@@ -548,7 +548,7 @@ void Shader::sendTexture(const std::string &name, GLuint texture)
glUniform1i(u.location, textureunit);
// reset texture unit
gl.setActiveTextureUnit(0);
gl.setTextureUnit(0);
// increment global shader texture id counter for this texture unit, if we haven't already
if (activeTextureUnits[textureunit-1] == 0)