[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56771] trunk/blender/intern/cycles/util/ util_boundbox.h: Cycles:
Thomas Dinges
blender at dingto.org
Mon May 13 17:31:59 CEST 2013
Revision: 56771
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56771
Author: dingto
Date: 2013-05-13 15:31:59 +0000 (Mon, 13 May 2013)
Log Message:
-----------
Cycles:
* Fix compile error, when building with __KERNEL_SSE__
Modified Paths:
--------------
trunk/blender/intern/cycles/util/util_boundbox.h
Modified: trunk/blender/intern/cycles/util/util_boundbox.h
===================================================================
--- trunk/blender/intern/cycles/util/util_boundbox.h 2013-05-13 14:53:37 UTC (rev 56770)
+++ trunk/blender/intern/cycles/util/util_boundbox.h 2013-05-13 15:31:59 UTC (rev 56771)
@@ -69,7 +69,7 @@
__forceinline void grow(const float3& pt, float border)
{
- float3 shift = {border, border, border, 0.0f};
+ float3 shift = make_float3(border, border, border);
min = ccl::min(pt - shift, min);
max = ccl::max(pt + shift, max);
}
@@ -93,7 +93,7 @@
__forceinline void grow_safe(const float3& pt, float border)
{
if(isfinite(pt.x) && isfinite(pt.y) && isfinite(pt.z) && isfinite(border)) {
- float3 shift = {border, border, border, 0.0f};
+ float3 shift = make_float3(border, border, border);
min = ccl::min(pt - shift, min);
max = ccl::max(pt + shift, max);
}
More information about the Bf-blender-cvs
mailing list