Skip to content

Commit 2874e82

Browse files
committed
[fix] depth clear clamp check.
1 parent 2730e86 commit 2874e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/lambda-rs/src/render/render_pass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl RenderPassBuilder {
207207
// Optionally log when clamping is applied.
208208
#[cfg(any(debug_assertions, feature = "render-validation-depth",))]
209209
{
210-
if (clamped - clear).abs() > f64::EPSILON {
210+
if clamped != clear {
211211
logging::warn!(
212212
"Depth clear value {} out of range [0,1]; clamped to {}",
213213
clear,

0 commit comments

Comments
 (0)