gamnit: if a texture fails to load, use the checker texture
[nit.git] / lib / gamnit / textures.nit
index ad176a5..df3e0b6 100644 (file)
@@ -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