diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-25 02:11:45 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-25 02:11:45 +0200 |
commit | bcdf2a10e6681a0935fad9527269fb11fb4a27ff (patch) | |
tree | 4074b2ebafc435d0fd09a32ff46db228748487cc | |
parent | d6e1d8c253fc9f45604dc06497d02cf7d49d139e (diff) | |
download | kit-bcdf2a10e6681a0935fad9527269fb11fb4a27ff.zip |
GL minor fixes
-rw-r--r-- | gen_gl.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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++) |