Commit: 1552c92fb1e77f55c44627f46692a627923d9027
Author: Michael Jones
Date:   Tue Dec 7 21:05:58 2021 +0000
Branches: master
https://developer.blender.org/rB1552c92fb1e77f55c44627f46692a627923d9027

Cycles: Fix Metal BVH crash caused by missing `WITH_METAL` define

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D13505

===================================================================

M       intern/cycles/bvh/CMakeLists.txt

===================================================================

diff --git a/intern/cycles/bvh/CMakeLists.txt b/intern/cycles/bvh/CMakeLists.txt
index f275419d13c..b5c80f78f09 100644
--- a/intern/cycles/bvh/CMakeLists.txt
+++ b/intern/cycles/bvh/CMakeLists.txt
@@ -41,6 +41,7 @@ if(WITH_CYCLES_DEVICE_METAL)
   list(APPEND SRC
     ${SRC_METAL}
   )
+  add_definitions(-DWITH_METAL)
 endif()
 
 set(SRC_HEADERS

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to