replace BLI_array_declare with BLI_array_staticdeclare() and BLI_array_alloca() for smaller arrays.

This commit is contained in:
Campbell Barton
2012-12-12 02:48:03 +00:00
parent b5ce1b1a23
commit c40030a36c
4 changed files with 31 additions and 66 deletions

View File

@@ -28,9 +28,8 @@ shader node_mapping(
{
point p = transform(Matrix, VectorIn);
if(use_minmax)
if (use_minmax)
p = min(max(mapping_min, p), mapping_max);
VectorOut = p;
}