DeclanRussell / NvidiaAIDenoiser

A simple implementation of Nvidia's AI denoiser
MIT License
398 stars 52 forks source link

Fix slicing of std::exception #12

Closed Talkless closed 5 years ago

Talkless commented 5 years ago

When exception happens, application prints very generic output like [OptiX]: std::exception. This is due to fact that std::exception is cached by value, not reference.

Catch exceptions by const reference to produce more informative console output. After the fix, application prints [OptiX]: Failed to load OptiX library instead.

DeclanRussell commented 5 years ago

Great thanks for the fix! :)