From f18be66a0c213af6b3c6ba697be4a34b5d70b33b Mon Sep 17 00:00:00 2001 From: Emerson Coskey <56370779+ecoskey@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:50:48 -0700 Subject: [PATCH] Fix mesh flags (#15804) Fixed incorrect mesh flags offsets ## Testing Ran OIT example since that was the affected flag --- crates/bevy_pbr/src/render/mesh.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_pbr/src/render/mesh.rs b/crates/bevy_pbr/src/render/mesh.rs index 1f8836ff87..f59381b865 100644 --- a/crates/bevy_pbr/src/render/mesh.rs +++ b/crates/bevy_pbr/src/render/mesh.rs @@ -1494,8 +1494,8 @@ bitflags::bitflags! { const SCREEN_SPACE_REFLECTIONS = 1 << 16; const HAS_PREVIOUS_SKIN = 1 << 17; const HAS_PREVIOUS_MORPH = 1 << 18; - const OIT_ENABLED = 1 << 18; - const LAST_FLAG = Self::HAS_PREVIOUS_MORPH.bits(); + const OIT_ENABLED = 1 << 19; + const LAST_FLAG = Self::OIT_ENABLED.bits(); // Bitfields const MSAA_RESERVED_BITS = Self::MSAA_MASK_BITS << Self::MSAA_SHIFT_BITS;