Просмотр исходного кода

fix: compilation error caused by missing "inline" keyword. (#1709)

X.ZhaoMa 5 лет назад
Родитель
Сommit
70d2abaa53
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      include/igl/embree/EmbreeIntersector.cpp

+ 2 - 2
include/igl/embree/EmbreeIntersector.cpp

@@ -119,7 +119,7 @@ IGL_INLINE void igl::embree::EmbreeIntersector::init(
   initialized = true;
 }
 
-igl::embree::EmbreeIntersector
+IGL_INLINE igl::embree::EmbreeIntersector
 ::~EmbreeIntersector()
 {
   if(initialized)
@@ -127,7 +127,7 @@ igl::embree::EmbreeIntersector
   igl::embree::EmbreeDevice::release_device();
 }
 
-void igl::embree::EmbreeIntersector::deinit()
+IGL_INLINE void igl::embree::EmbreeIntersector::deinit()
 {
   if(device && scene)
   {