Skip to content

Commit

Permalink
avm2: Add stub for Graphics uvt parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 authored and Dinnerbone committed Nov 12, 2023
1 parent c360d45 commit de4d586
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/src/avm2/globals/flash/display/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,15 @@ pub fn draw_triangles<'gc>(

let uvt_data = args.try_get_object(activation, 2);

if uvt_data.is_some() {
avm2_stub_method!(
activation,
"flash.display.Graphics",
"drawTriangles",
"with uvt data"
);
}

let culling = {
let culling = args.get_string(activation, 3)?;
culling_to_triangle_culling(activation, culling)?
Expand Down Expand Up @@ -1396,6 +1405,13 @@ fn handle_graphics_triangle_path<'gc>(
.get_public_property("uvtData", activation)?
.coerce_to_object(activation)?;

avm2_stub_method!(
activation,
"flash.display.Graphics",
"drawGraphicsData",
"with uvt data"
);

if let Some(vertices) = vertices.as_vector_storage() {
if let Some(indices) = indices.as_vector_storage() {
fn read_point<'gc>(
Expand Down

0 comments on commit de4d586

Please sign in to comment.