Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/src/buttons_shading.c')
-rw-r--r--source/blender/src/buttons_shading.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c
index f12707d7ac4..fcbe1a5d71c 100644
--- a/source/blender/src/buttons_shading.c
+++ b/source/blender/src/buttons_shading.c
@@ -667,8 +667,12 @@ void do_texbuts(unsigned short event)
}
IMB_freeImBuf(tex->ima->ibuf);
- tex->ima->ibuf= 0;
+ tex->ima->ibuf= NULL;
tex->ima->ok= 1;
+
+ if(tex->env)
+ RE_free_envmapdata(tex->env);
+
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWIMAGE, 0);
BIF_all_preview_changed();