浏览代码

Fix error output when a shader stage fails to compile.

--HG--
branch : minor
Alex Szpakowski 8 年之前
父节点
当前提交
90cb3870e7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/graphics/opengl/ShaderStage.cpp

+ 1 - 1
src/modules/graphics/opengl/ShaderStage.cpp

@@ -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());