From 52c514db3773650e3c9a8e32139119c5cbb772b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Fri, 9 Jun 2017 10:48:09 -0400 Subject: [PATCH] gamnit: if a texture fails to load, use the checker texture MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/textures.nit | 3 +++ 1 file changed, 3 insertions(+) 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 -- 1.7.9.5