From 29c2dae6cbd0346e8587e19e9a6a9d0b5098cb76 Mon Sep 17 00:00:00 2001 From: Rakarake Date: Sun, 22 Feb 2026 19:35:40 +0100 Subject: [PATCH] no file output on compilation error --- renderer.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/renderer.c b/renderer.c index c6db943..a20dd87 100644 --- a/renderer.c +++ b/renderer.c @@ -74,20 +74,20 @@ GLuint load_shader(const char *path) { GLuint shader = create_shader(string); - if (shader == 0) { - // print file - int line_count = 1; - printf("%i\t", line_count); - line_count++; - for (int i = 0; i < length; i++) { - printf("%c", string[i]); - if (string[i] == '\n') { - printf("%i\t", line_count); - line_count++; - } - } - printf("\n"); - } + //if (shader == 0) { + // // print file + // int line_count = 1; + // printf("%i\t", line_count); + // line_count++; + // for (int i = 0; i < length; i++) { + // printf("%c", string[i]); + // if (string[i] == '\n') { + // printf("%i\t", line_count); + // line_count++; + // } + // } + // printf("\n"); + //} free(string); return shader;