From a80bf6bb6cb8ab8c5a1430f9f9dbc214f71bdddf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 22 Oct 2021 07:29:34 +0200 Subject: Use shader --- src/graphics/Image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphics/Image.cpp') 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() { -- cgit v1.2.3