missing tex
This commit is contained in:
@@ -10,7 +10,12 @@ namespace Game::Renderer {
|
||||
SDL_Surface* surf = IMG_Load(path.c_str());
|
||||
if (!surf) {
|
||||
ERROR("Failed to load image at " << path);
|
||||
return;
|
||||
// Load Missing Texture
|
||||
surf = IMG_Load("../resources/missing_texture.png");
|
||||
if (!surf) {
|
||||
ERROR("Failed to load missing texture image");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
mTex = SDL_CreateTextureFromSurface(renderer, surf);
|
||||
|
||||
Reference in New Issue
Block a user