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;