avm2: Add stub for winding behavior of drawing triangles in Graphics

Currently, even-odd winding rule is used to render triangles,
but FP uses non-zero.
This commit is contained in:
Kamil Jarosz 2024-06-17 20:43:23 +02:00
parent f046263002
commit 8b2c9d8157
1 changed files with 9 additions and 0 deletions

View File

@ -984,6 +984,15 @@ fn draw_triangles_internal<'gc>(
uvt_data: Option<&Object<'gc>>,
culling: TriangleCulling,
) -> Result<(), Error<'gc>> {
// FIXME Triangles should be drawn using non-zero winding rule.
// When fixed, update output.expected.png of avm2/graphics_draw_triangles.
avm2_stub_method!(
activation,
"flash.display.Graphics",
"drawTriangles",
"winding behavior"
);
if uvt_data.is_some() {
avm2_stub_method!(
activation,