diff --git a/LCSEngine/Shader.cpp b/LCSEngine/Shader.cpp index ea1f98d..977fd69 100644 --- a/LCSEngine/Shader.cpp +++ b/LCSEngine/Shader.cpp @@ -101,10 +101,10 @@ bool Shader::linkShaders(shaderInfo* info) glLinkProgram(shaderProgram); GLint success; - GLchar infoLog; + GLchar infoLog[512]; glGetProgramiv(shaderProgram, GL_LINK_STATUS, &success); if (!success) { - glGetProgramInfoLog(shaderProgram, 512, NULL, &infoLog); + glGetProgramInfoLog(shaderProgram, 512, NULL, infoLog); LOG("Shader link error: %s", infoLog); return false; }