Skip to content

Commit

Permalink
[fix] make oidn denoiser unavailable if oidn library is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
begla committed Jul 29, 2024
1 parent 3a404fd commit 93a07a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions iolite_plugins/denoiser_oidn_plugin/denoiser_oidn_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,13 @@ IO_API_EXPORT int IO_API_CALL load_plugin(void* api_manager)
io_logging =
(const io_logging_i*)io_api_manager->find_first(IO_LOGGING_API_NAME);

if (!load_oidn())
{
// Unsupported if OIDN is not available
return -1;
}
unload_oidn();

// Register the interfaces we provide
{
io_user_denoiser.get_name = get_name;
Expand Down

0 comments on commit 93a07a2

Please sign in to comment.