diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-22 07:29:34 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-22 07:29:34 +0200 |
commit | a80bf6bb6cb8ab8c5a1430f9f9dbc214f71bdddf (patch) | |
tree | efcab64abdcfa211020bf4410e12d6182a1c8d90 /src/graphics/Image.cpp | |
parent | c9ee5e1c1feccb073863ba17cbfdcf094f235886 (diff) |
Use shader
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() { |