diff --git a/src/rmagine_core/include/rmagine/math/types/Quaternion.hpp b/src/rmagine_core/include/rmagine/math/types/Quaternion.hpp index 3ce1f69..cf7a962 100644 --- a/src/rmagine_core/include/rmagine/math/types/Quaternion.hpp +++ b/src/rmagine_core/include/rmagine/math/types/Quaternion.hpp @@ -100,6 +100,7 @@ struct Quaternion_ * Or parts of different rotations (Slerp) * Ra^(a) * Rb^(b) */ + RMAGINE_INLINE_FUNCTION Quaternion_ pow(const DataT& exp) const; RMAGINE_INLINE_FUNCTION diff --git a/src/rmagine_optix/src/util/optix/optix_modules.cpp b/src/rmagine_optix/src/util/optix/optix_modules.cpp index a260d34..b8c2ba8 100644 --- a/src/rmagine_optix/src/util/optix/optix_modules.cpp +++ b/src/rmagine_optix/src/util/optix/optix_modules.cpp @@ -24,7 +24,11 @@ ProgramModule::~ProgramModule() #if OPTIX_VERSION >= 70400 if(compile_options->payloadTypes) { + #if OPTIX_VERSION >= 80000 cudaFreeHost(const_cast(reinterpret_cast(compile_options->payloadTypes))); + #else + cudaFreeHost(compile_options->payloadTypes); + #endif // OPTIX_VERSION >= 80000 } #endif