replace MIN2 / MAX2 with minf / maxf to avoid calling functions multiple times.

This commit is contained in:
2012-02-19 05:11:24 +00:00
parent 4450039734
commit 02b28e9162
7 changed files with 8 additions and 8 deletions

View File

@@ -1071,7 +1071,7 @@ static void do_material_tex(GPUShadeInput *shi)
else
newnor = tnor;
norfac = MIN2(fabsf(mtex->norfac), 1.0f);
norfac = minf(fabsf(mtex->norfac), 1.0f);
if(norfac == 1.0f && !GPU_link_changed(stencil)) {
shi->vn = newnor;