aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/shader.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-30 04:22:07 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-30 04:22:07 +0200
commit8a316a12481282cb2ab966c4cbc770656c258383 (patch)
tree678b4efcaa4e47cb4f4d2bd29c90badbeac8789c /src/graphics/shader.c
parent275e851e8a2b11c2efe7c39787bf331dd3b75272 (diff)
Add option to make mgl_file_load result null terminated
Diffstat (limited to 'src/graphics/shader.c')
-rw-r--r--src/graphics/shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/shader.c b/src/graphics/shader.c
index 4aedb87..9afde0e 100644
--- a/src/graphics/shader.c
+++ b/src/graphics/shader.c
@@ -71,7 +71,7 @@ static int mgl_shader_load_from_file(mgl_shader *self, const char *filepath, mgl
self->shader_type = shader_type;
mgl_filedata filedata;
- if(mgl_load_file(filepath, &filedata) != 0) {
+ if(mgl_load_file(filepath, &filedata, NULL) != 0) {
fprintf(stderr, "Error: failed to load shader %s, error: mgl_load_file failed\n", filepath);
return -1;
}