diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2012-02-08 11:49:23 +0100 |
---|---|---|
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2012-02-24 22:37:16 +0100 |
commit | 496451c164af0b2e90c5b7a155a101ed55472e52 (patch) | |
tree | 7b612309e073b2f326221700e28de9c76d59da2a | |
parent | 993821a92448bf3573ac56dbfe67ee4b54172d06 (diff) | |
download | minetest-496451c164af0b2e90c5b7a155a101ed55472e52.tar.gz minetest-496451c164af0b2e90c5b7a155a101ed55472e52.tar.bz2 minetest-496451c164af0b2e90c5b7a155a101ed55472e52.zip |
itemdef: handle the !render-to-target case
-rw-r--r-- | src/itemdef.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/itemdef.cpp b/src/itemdef.cpp index aa888bbdf..22ca9f088 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]); + } } /* |