buggy line support

This commit is contained in:
Konstantin Käfer
2014-01-28 18:40:17 +01:00
parent 43ab6732d9
commit e359d697fb
16 changed files with 273 additions and 29 deletions

View File

@@ -119,7 +119,7 @@ bool Shader::compileShader(GLuint *shader, GLenum type, const GLchar *source) {
glCompileShader(*shader);
#if defined(DEBUG)
// #if defined(DEBUG)
GLint logLength;
glGetShaderiv(*shader, GL_INFO_LOG_LENGTH, &logLength);
if (logLength > 0) {
@@ -128,7 +128,7 @@ bool Shader::compileShader(GLuint *shader, GLenum type, const GLchar *source) {
fprintf(stderr, "Shader compile log:\n%s", log);
free(log);
}
#endif
// #endif
glGetShaderiv(*shader, GL_COMPILE_STATUS, &status);
if (status == 0) {