nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c27f4d6
)
gamnit: if a texture fails to load, use the checker texture
author
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 9 Jun 2017 14:48:09 +0000
(10:48 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 12 Jun 2017 18:39:11 +0000
(14:39 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/gamnit/textures.nit
patch
|
blob
|
history
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
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
loaded = true
end