We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23c87f6 commit 8aaf995Copy full SHA for 8aaf995
core/src/avm1/globals/color_matrix_filter.rs
@@ -61,10 +61,9 @@ impl<'gc> ColorMatrixFilter<'gc> {
61
}
62
63
fn matrix(self, activation: &mut Activation<'_, 'gc>) -> Value<'gc> {
64
- // Use `.as_slice_of_cells()` to avoid a copy out of the `Cell`.
65
- // FIXME: use `.as_array_of_cells()` once stabilized.
66
- let matrix: &Cell<[f32]> = &self.0.matrix;
67
- let matrix = matrix.as_slice_of_cells();
+ // Use `.as_array_of_cells()` to avoid a copy out of the `Cell`.
+ let matrix = self.0.matrix.as_array_of_cells();
+
68
ArrayBuilder::new(activation)
69
.with(matrix.iter().map(|v| v.get().into()))
70
.into()
0 commit comments