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

Fix: texture.update() now only updates uvs and dispatches an event #10189

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

GoodBoyDigital
Copy link
Member

A couple of releases ago, I added a pass through update function. So updating the texture, would call update on the source. This was a bad idea!

As when you call update on a texture, you should not expect it to re-upload its source (which can be easily acheived by calling texture.source.update()

Calling texture update now simple updates the uvs and dispatches an update event. Much better!

@GoodBoyDigital GoodBoyDigital changed the base branch from dev to next-v8 February 6, 2024 16:13
Copy link

codesandbox-ci bot commented Feb 6, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1b90623:

Sandbox Source
pixi.js-sandbox Configuration

@Zyie Zyie changed the title Chore/tweak texture update Fix: texture.update() now only updates uvs and dispatches an event Feb 6, 2024
@Zyie Zyie merged commit 96cd830 into next-v8 Feb 6, 2024
4 checks passed
@Zyie Zyie deleted the chore/tweak-texture-update branch February 6, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants