diff options
Diffstat (limited to 'src/graphics/Image.cpp')
-rw-r--r-- | src/graphics/Image.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics/Image.cpp b/src/graphics/Image.cpp index c45da15..493fad7 100644 --- a/src/graphics/Image.cpp +++ b/src/graphics/Image.cpp @@ -10,10 +10,10 @@ namespace mgl { mgl_image_unload(&image); } - bool Image::load_from_file(const std::string &filepath) { + bool Image::load_from_file(const char *filepath) { if(image.data) return false; - return mgl_image_load_from_file(&image, filepath.c_str()) == 0; + return mgl_image_load_from_file(&image, filepath) == 0; } unsigned char* Image::data() { |