Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Susano Pinto <andresusanopinto@gmail.com>2009-10-06 04:28:07 +0400
committerAndre Susano Pinto <andresusanopinto@gmail.com>2009-10-06 04:28:07 +0400
commit11bdf6ea10ee7bc5e2862cdddbf42eddb06c42fa (patch)
tree55b3def9d986ceaee75fe7d978561464f7731205 /source/blender/render/intern/raytrace/rayobject_qbvh.cpp
parenta62e37bfbe5a1430b204b39dcc2e1156d2a6f2bc (diff)
Added #ifdef __SSE__ so it can still build when SSE is disabled at compile time
Diffstat (limited to 'source/blender/render/intern/raytrace/rayobject_qbvh.cpp')
-rw-r--r--source/blender/render/intern/raytrace/rayobject_qbvh.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/render/intern/raytrace/rayobject_qbvh.cpp b/source/blender/render/intern/raytrace/rayobject_qbvh.cpp
index b18ee0824cf..8d35848c9ec 100644
--- a/source/blender/render/intern/raytrace/rayobject_qbvh.cpp
+++ b/source/blender/render/intern/raytrace/rayobject_qbvh.cpp
@@ -30,6 +30,8 @@
#include "svbvh.h"
#include "reorganize.h"
+#ifdef __SSE__
+
#define DFS_STACK_SIZE 256
struct QBVHTree
@@ -134,3 +136,14 @@ RayObject *RE_rayobject_qbvh_create(int size)
{
return bvh_create_tree<QBVHTree,DFS_STACK_SIZE>(size);
}
+
+
+#else
+
+RayObject *RE_rayobject_qbvh_create(int size)
+{
+ puts("WARNING: SSE disabled at compile time\n");
+ return NULL;
+}
+
+#endif \ No newline at end of file