From 681f53bd95f204cdbd193a59cdc40c75c5029949 Mon Sep 17 00:00:00 2001 From: DcruBro Date: Mon, 16 Mar 2026 11:31:06 +0100 Subject: [PATCH] missing tex --- src/renderer/texture.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/renderer/texture.cpp b/src/renderer/texture.cpp index 5ae21e8..47b3abe 100644 --- a/src/renderer/texture.cpp +++ b/src/renderer/texture.cpp @@ -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);