Skip to content

Commit 931fb72

Browse files
ludovic-theobaldEvergreen
authored andcommitted
[HDRP][Fix] Prevent sensor SDK related compilation error on DXR-enabled projects
1 parent 6a2ca0c commit 931fb72

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Packages/com.unity.render-pipelines.high-definition/Editor/BuildProcessors/HDRPPreprocessShaders.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ protected override bool DoShadersStripper(HDRenderPipelineAsset hdrpAsset, Shade
296296
bool useBicubicLightmapSampling = false;
297297
if (GraphicsSettings.TryGetRenderPipelineSettings<LightmapSamplingSettings>(out var lightmapSamplingSettings))
298298
useBicubicLightmapSampling = lightmapSamplingSettings.useBicubicLightmapSampling;
299-
return inputData.shaderKeywordSet.IsEnabled(m_LightmapBicubicSampling) != useBicubicLightmapSampling;
299+
if (inputData.shaderKeywordSet.IsEnabled(m_LightmapBicubicSampling) != useBicubicLightmapSampling)
300+
return true;
300301
}
301302

302303
#if !ENABLE_SENSOR_SDK

0 commit comments

Comments
 (0)