]> git.sesse.net Git - narabu/commitdiff
Don't print out the shader on failure, as it's not autogenerated.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 3 Oct 2017 22:30:02 +0000 (00:30 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 3 Oct 2017 22:30:02 +0000 (00:30 +0200)
util.cpp

index 5749f63f20e8d9213b6ff5e1961f5d9c0b194141..039eb04ca7769b6a39cd1b9b24fa489903cb38a8 100644 (file)
--- a/util.cpp
+++ b/util.cpp
@@ -66,7 +66,7 @@ GLuint compile_shader(const string &shader_src, GLenum type)
        GLint status;
        glGetShaderiv(obj, GL_COMPILE_STATUS, &status);
        if (status == GL_FALSE) {
-               fprintf(stderr, "Failed to compile shader: %s\n", shader_src.c_str());
+               fprintf(stderr, "Failed to compile shader\n");
                exit(1);
        }