From: Jonathan Neuschäfer Date: Wed, 8 Feb 2012 10:49:23 +0000 (+0100) Subject: itemdef: handle the !render-to-target case X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=496451c164af0b2e90c5b7a155a101ed55472e52;p=zefram%2Fminetest%2Fminetest_engine.git itemdef: handle the !render-to-target case --- diff --git a/src/itemdef.cpp b/src/itemdef.cpp index aa888bbd..22ca9f08 100644 --- a/src/itemdef.cpp +++ b/src/itemdef.cpp @@ -417,7 +417,13 @@ public: light_position, light_color, light_radius); - // Note: might have returned NULL + + // render-to-target didn't work + if(def->inventory_texture == NULL) + { + def->inventory_texture = + tsrc->getTextureRaw(f.tname_tiles[0]); + } } /*