Skip to content

Undo ImageData texture uploads#732

Open
adroitwhiz wants to merge 1 commit intoscratchfoundation:developfrom
adroitwhiz:unimagedatafy
Open

Undo ImageData texture uploads#732
adroitwhiz wants to merge 1 commit intoscratchfoundation:developfrom
adroitwhiz:unimagedatafy

Conversation

@adroitwhiz
Copy link
Copy Markdown
Contributor

Resolves

Resolves #731

Proposed Changes

This PR changes texImage2D calls back to being passed <canvas> elements directly rather than ImageData.

Reason for Changes

When uploading textures with premultiplied alpha, it's faster to pass in sources whose alpha is already premultiplied--see #731 for more detail.

Test Coverage

Should be tested manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uploading textures via ImageData is slower than doing it via regular images

1 participant