Skip to content

Commit

Permalink
const cast only for optix 8 as quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amock committed Apr 5, 2024
1 parent 13217b0 commit 8f7a35e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rmagine_core/include/rmagine/math/types/Quaternion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ struct Quaternion_
* Or parts of different rotations (Slerp)
* Ra^(a) * Rb^(b)
*/
RMAGINE_INLINE_FUNCTION
Quaternion_<DataT> pow(const DataT& exp) const;

RMAGINE_INLINE_FUNCTION
Expand Down
4 changes: 4 additions & 0 deletions src/rmagine_optix/src/util/optix/optix_modules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ ProgramModule::~ProgramModule()
#if OPTIX_VERSION >= 70400
if(compile_options->payloadTypes)
{
#if OPTIX_VERSION >= 80000
cudaFreeHost(const_cast<void*>(reinterpret_cast<const void*>(compile_options->payloadTypes)));
#else
cudaFreeHost(compile_options->payloadTypes);
#endif // OPTIX_VERSION >= 80000
}
#endif

Expand Down

0 comments on commit 8f7a35e

Please sign in to comment.