summaryrefslogtreecommitdiff
path: root/gen_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gen_gl.c')
-rw-r--r--gen_gl.c8
1 files changed, 7 insertions, 1 deletions
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++)