From d5da655f8f1374bd0b2acd99cc94d52a2e21a246 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Mon, 23 Oct 2023 17:36:28 -0400 Subject: [PATCH] avm2: Fix setting frontAndBack culling The name uses camel case, not snake case. --- core/src/avm2/globals/flash/display3D/context_3d.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/avm2/globals/flash/display3D/context_3d.rs b/core/src/avm2/globals/flash/display3D/context_3d.rs index f6bbaad197b9..0cba15eb5142 100644 --- a/core/src/avm2/globals/flash/display3D/context_3d.rs +++ b/core/src/avm2/globals/flash/display3D/context_3d.rs @@ -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);