diff --git a/examples/mandlebrot/mandlebrot.rs b/examples/mandlebrot/mandlebrot.rs index 997543b87..e3bebd242 100644 --- a/examples/mandlebrot/mandlebrot.rs +++ b/examples/mandlebrot/mandlebrot.rs @@ -78,8 +78,14 @@ impl Default for PushConstants { } impl PushConstants { fn set(&mut self, p: DVec2, q: DVec2, iterations: i32) { - self.p = p.cast_approx(); - self.q = q.cast_approx(); + #[cfg(feature = "shader64")] { + self.p = p; + self.q = q; + } + #[cfg(not(feature = "shader64"))] { + self.p = p.cast_approx(); + self.q = q.cast_approx(); + } self.iterations = iterations; } }