From bcdf2a10e6681a0935fad9527269fb11fb4a27ff Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Mon, 25 Sep 2023 02:11:45 +0200 Subject: GL minor fixes --- gen_gl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gen_gl.c') diff --git a/gen_gl.c b/gen_gl.c index 552ce1a..365b195 100644 --- a/gen_gl.c +++ b/gen_gl.c @@ -353,7 +353,7 @@ int main(int argc, char **argv) { f = fopen("gl.h", "wb"); if (f == NULL) { - printf("Failed to write kit_gl.inl.h.\n"); + printf("Failed to write gl.h.\n"); DESTROY_ALL_; return 1; } @@ -448,6 +448,12 @@ int main(int argc, char **argv) { f = fopen("gl.inl.h", "wb"); + if (f == NULL) { + printf("Failed to write gl.inl.h.\n"); + DESTROY_ALL_; + return 1; + } + fprintf(f, "#include \"gl.h\"\n"); for (i64 i = 0; i < procs.size; i++) -- cgit v1.2.3