mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Reverted commit 8c64a0c (love.graphics.setCanvas(nil) erroring)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user