From a1f4d0fab88320a3f0ddd7dfde7cdf9f1725f19d Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Sat, 26 Oct 2024 12:36:57 -0700 Subject: [PATCH] Fix OptiX denoiser initialization for OptiX 8.0.0 Fixes #422. --- src/pbrt/gpu/optix/denoiser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pbrt/gpu/optix/denoiser.cpp b/src/pbrt/gpu/optix/denoiser.cpp index 11a221b58..807df9467 100644 --- a/src/pbrt/gpu/optix/denoiser.cpp +++ b/src/pbrt/gpu/optix/denoiser.cpp @@ -42,7 +42,9 @@ Denoiser::Denoiser(Vector2i resolution, bool haveAlbedoAndNormal) OptixDenoiserOptions options = {}; #if (OPTIX_VERSION >= 80000) options.denoiseAlpha = OPTIX_DENOISER_ALPHA_MODE_COPY; -#elif (OPTIX_VERSION >= 70300) +#endif + +#if (OPTIX_VERSION >= 70300) if (haveAlbedoAndNormal) options.guideAlbedo = options.guideNormal = 1;