From: Alexis Laferrière Date: Sat, 25 Jun 2016 18:38:03 +0000 (-0400) Subject: gamnit: don't abort when failing to load a texture X-Git-Url: http://nitlanguage.org?ds=sidebyside gamnit: don't abort when failing to load a texture Signed-off-by: Alexis Laferrière --- diff --git a/lib/gamnit/flat.nit b/lib/gamnit/flat.nit index b74da82..45d1ce9 100644 --- a/lib/gamnit/flat.nit +++ b/lib/gamnit/flat.nit @@ -166,12 +166,11 @@ redef class App # Prepare to draw for tex in all_root_textures do tex.load + gamnit_error = tex.error + if gamnit_error != null then print_error gamnit_error glTexParameteri(gl_TEXTURE_2D, gl_TEXTURE_MIN_FILTER, gl_LINEAR) glTexParameteri(gl_TEXTURE_2D, gl_TEXTURE_MAG_FILTER, gl_LINEAR) - - gamnit_error = tex.error - assert gamnit_error == null else print_error gamnit_error end end