diff options
Diffstat (limited to 'src/resources.odin')
| -rw-r--r-- | src/resources.odin | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources.odin b/src/resources.odin index 0a4f843..537c265 100644 --- a/src/resources.odin +++ b/src/resources.odin @@ -1,5 +1,7 @@ package demonchime +import "core:log" + import rl "vendor:raylib" Image_Resource :: struct { @@ -67,7 +69,7 @@ get_image :: proc(id: Image_Id) -> rl.Texture2D { i32(len(img_res.data)), ) if !rl.IsImageValid(rl_img) { - die("Could not load asset %v", id) + log.warnf("Could not load asset %v", id) } img_res.texture = rl.LoadTextureFromImage(rl_img) |
