Fix projection texture painting crash
[blender-staging.git] / source / blender / render / intern / source / renderdatabase.c
index 31424b900c714a0209e611d03afe7c3726bcbc45..b25f2f4201a93ee8a5863d453fc864be3cc6bacf 100644 (file)
@@ -1051,7 +1051,7 @@ HaloRen *RE_inithalo(Render *re, ObjectRen *obr, Material *ma,
                                }
                        }
 
-                       externtex(mtex, texvec, &tin, &tr, &tg, &tb, &ta, 0);
+                       externtex(mtex, texvec, &tin, &tr, &tg, &tb, &ta, 0, re->pool);
 
                        yn= tin*mtex->colfac;
                        //zn= tin*mtex->alphafac;
@@ -1182,7 +1182,7 @@ HaloRen *RE_inithalo_particle(Render *re, ObjectRen *obr, DerivedMesh *dm, Mater
                                copy_v3_v3(texvec, orco);
                        }
 
-                       hasrgb = externtex(mtex, texvec, &tin, &tr, &tg, &tb, &ta, 0);
+                       hasrgb = externtex(mtex, texvec, &tin, &tr, &tg, &tb, &ta, 0, re->pool);
 
                        //yn= tin*mtex->colfac;
                        //zn= tin*mtex->alphafac;