Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement surfaceSelector in Context3D.setRenderToTexture #15495

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

Aaron1011
Copy link
Member

This still needs a test, but I'm planning to add that in a follow-up PR
Fixes #15487

@@ -612,15 +612,6 @@ pub fn set_render_to_texture<'gc>(
);
}

if surface_selector != 0 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want the same validation as FP has?

ArgumentError - for a mismatched surfaceSelector parameter. The value must be 0 for 2D textures and 0..5 for cube maps

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hesitated to merge myself because I wasn't sure how strongly you wanted this to be addressed.

@torokati44 torokati44 added waiting-on-author Waiting on the PR author to make the requested changes A-rendering Area: Rendering & Graphics A-avm2 Area: AVM2 (ActionScript 3) render-wgpu Issues relating to the wgpu renderer stage3d labels Mar 11, 2024
@danielhjacobs danielhjacobs added the T-compat Type: Compatibility with Flash Player label Sep 17, 2024
@adrian17 adrian17 force-pushed the surface-selector branch 2 times, most recently from 7c3b358 to 950f7e0 Compare October 11, 2024 19:19
@Lord-McSweeney Lord-McSweeney merged commit 9517774 into ruffle-rs:master Oct 11, 2024
17 checks passed
@n0samu n0samu removed the waiting-on-author Waiting on the PR author to make the requested changes label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) A-rendering Area: Rendering & Graphics newsworthy render-wgpu Issues relating to the wgpu renderer stage3d T-compat Type: Compatibility with Flash Player
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash on Ena.swf
7 participants