summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-25 02:11:45 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-25 02:11:45 +0200
commitbcdf2a10e6681a0935fad9527269fb11fb4a27ff (patch)
tree4074b2ebafc435d0fd09a32ff46db228748487cc
parentd6e1d8c253fc9f45604dc06497d02cf7d49d139e (diff)
downloadkit-bcdf2a10e6681a0935fad9527269fb11fb4a27ff.zip
GL minor fixes
-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++)