Skip to content

Commit

Permalink
avm2: Fix setting frontAndBack culling
Browse files Browse the repository at this point in the history
The name uses camel case, not snake case.
  • Loading branch information
Aaron1011 committed Oct 23, 2023
1 parent 3a75502 commit d5da655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/avm2/globals/flash/display3D/context_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ pub fn set_culling<'gc>(
Context3DTriangleFace::Back
} else if &*culling == b"front" {
Context3DTriangleFace::Front
} else if &*culling == b"front_and_back" {
} else if &*culling == b"frontAndBack" {
Context3DTriangleFace::FrontAndBack
} else {
tracing::error!("Unknown culling {:?}", culling);
Expand Down

0 comments on commit d5da655

Please sign in to comment.