nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gamnit: if a texture fails to load, use the checker texture
[nit.git]
/
lib
/
gamnit
/
textures.nit
diff --git
a/lib/gamnit/textures.nit
b/lib/gamnit/textures.nit
index
ad176a5
..
df3e0b6
100644
(file)
--- a/
lib/gamnit/textures.nit
+++ b/
lib/gamnit/textures.nit
@@
-209,6
+209,9
@@
class TextureAsset
load_from_platform
+ # If no pixel data was loaded, load the pixel default texture
+ if gl_texture == -1 then load_checker 32
+
loaded = true
end