aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-11 19:26:42 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-11 19:26:42 +0100
commit59c7588c6162a0be7dac13610e0b854f70b6d8b9 (patch)
tree7bbe4dc94c0666f1acfc66c9ed1bbb9874ed14dd /src/crepe/facade/SDLContext.cpp
parent656df6ddd6b5231705798540c347efeebf8ac8a9 (diff)
Adjusted rendering to make it work with newer system
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index c4c96e2..e87a2c5 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 %s", path.c_str());
+ tmp = IMG_Load("../asset/texture/ERROR.png");
}
std::unique_ptr<SDL_Surface, std::function<void(SDL_Surface *)>>