diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 15:56:32 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-13 15:56:32 +0100 |
commit | 2933655dea64f11f200f42fe51e58dacc5f160eb (patch) | |
tree | df285acaada7b482e27cdea4555bd91ce0d3d603 /src/crepe/facade/SDLContext.cpp | |
parent | 78c370bd6cb37c156d06e098fe4e555a9da9dcee (diff) | |
parent | f2509e89c02894ebd3ad992324eb300103621d26 (diff) |
merge `master` into `loek/cleanup`
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r-- | src/crepe/facade/SDLContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp index 1cb2936..aa15ef6 100644 --- a/src/crepe/facade/SDLContext.cpp +++ b/src/crepe/facade/SDLContext.cpp @@ -159,7 +159,7 @@ SDLContext::texture_from_path(const std::string & path) { SDL_Surface * tmp = IMG_Load(path.c_str()); if (tmp == nullptr) { - throw Exception("surface cannot be load from {}", path); + tmp = IMG_Load("../asset/texture/ERROR.png"); } std::unique_ptr<SDL_Surface, std::function<void(SDL_Surface *)>> |