Fix error output when a shader stage fails to compile.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-10-21 15:18:25 -03:00
parent 8db8b71587
commit 90cb3870e7
+1 -1
View File
@@ -83,7 +83,7 @@ bool ShaderStage::loadVolatile()
GLint status = GL_FALSE;
glGetShaderiv(glShader, GL_COMPILE_STATUS, &status);
if (glShader == GL_FALSE)
if (status == GL_FALSE)
{
glDeleteShader(glShader);
throw love::Exception("Cannot compile %s shader code:\n%s", typestr, warnings.c_str());