mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fix error output when a shader stage fails to compile.
--HG-- branch : minor
This commit is contained in:
@@ -83,7 +83,7 @@ bool ShaderStage::loadVolatile()
|
|||||||
GLint status = GL_FALSE;
|
GLint status = GL_FALSE;
|
||||||
glGetShaderiv(glShader, GL_COMPILE_STATUS, &status);
|
glGetShaderiv(glShader, GL_COMPILE_STATUS, &status);
|
||||||
|
|
||||||
if (glShader == GL_FALSE)
|
if (status == GL_FALSE)
|
||||||
{
|
{
|
||||||
glDeleteShader(glShader);
|
glDeleteShader(glShader);
|
||||||
throw love::Exception("Cannot compile %s shader code:\n%s", typestr, warnings.c_str());
|
throw love::Exception("Cannot compile %s shader code:\n%s", typestr, warnings.c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user