Fixed love.graphics.setShader with no arguments not properly restoring the default shader.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2014-08-26 09:44:07 -03:00
parent 8a7481eaa3
commit 3f208f1e60
+8
View File
@@ -429,6 +429,14 @@ void Shader::attach(bool temporary)
void Shader::detach()
{
if (defaultShader)
{
if (current != defaultShader)
defaultShader->attach();
return;
}
if (current != nullptr)
glUseProgram(0);