improvements

This commit is contained in:
2025-07-21 14:42:26 -05:00
parent ff7b2f4db7
commit f389609bd9
6 changed files with 110 additions and 20 deletions

View File

@@ -312,7 +312,7 @@ graphics.texture = function texture(path) {
if (!cache[id]) {
var ipath = res.find_image(id)
if (!ipath)
throw new Error(`unknown image ${id}`)
return graphics.texture('notex')
var result = create_image(ipath)
cache[id] = result