Bugfix: texture nodes render without OSA was using uninitialized

variables, giving incorrect results.
This commit is contained in:
Brecht Van Lommel 2009-10-09 20:59:44 +00:00
parent 7d07342c09
commit a5b30906ad

@ -1182,7 +1182,8 @@ static int multitex(Tex *tex, float *texvec, float *dxt, float *dyt, int osatex,
texres->talpha= 0; /* is set when image texture returns alpha (considered premul) */
if(tex->use_nodes && tex->nodetree) {
retval = evalnodes(tex, texvec, dxt, dyt, texres, thread, which_output);
if(osatex) retval = evalnodes(tex, texvec, dxt, dyt, texres, thread, which_output);
else retval = evalnodes(tex, texvec, NULL, NULL, texres, thread, which_output);
}
else
switch(tex->type) {