diff options
Diffstat (limited to 'src/graphics')
-rw-r--r-- | src/graphics/font.c | 2 | ||||
-rw-r--r-- | src/graphics/shader.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics/font.c b/src/graphics/font.c index 669c2ac..8344a04 100644 --- a/src/graphics/font.c +++ b/src/graphics/font.c @@ -22,7 +22,7 @@ int mgl_font_load_from_file(mgl_font *self, const char *filepath, unsigned int c self->num_packed_chars = 0; mgl_filedata filedata; - if(mgl_load_file(filepath, &filedata) != 0) { + if(mgl_load_file(filepath, &filedata, NULL) != 0) { fprintf(stderr, "Error: failed to load font %s, error: mgl_load_file failed\n", filepath); return -1; } 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; } |