From: Alexis Laferrière Date: Fri, 9 Jun 2017 14:48:09 +0000 (-0400) Subject: gamnit: if a texture fails to load, use the checker texture X-Git-Url: http://nitlanguage.org gamnit: if a texture fails to load, use the checker texture Signed-off-by: Alexis Laferrière --- diff --git a/lib/gamnit/textures.nit b/lib/gamnit/textures.nit index ad176a5..df3e0b6 100644 --- 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