From 90cb3870e7cd5785f85a4595cdad0efd6bde7168 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 21 Oct 2017 15:18:25 -0300 Subject: [PATCH] Fix error output when a shader stage fails to compile. --HG-- branch : minor --- src/modules/graphics/opengl/ShaderStage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/ShaderStage.cpp b/src/modules/graphics/opengl/ShaderStage.cpp index 55ae5c2be..23cd08a89 100644 --- a/src/modules/graphics/opengl/ShaderStage.cpp +++ b/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());