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

FilterSystem: remove division that can cause problems #5701

Merged
merged 3 commits into from
May 30, 2019

Conversation

ivanpopelyshev
Copy link
Collaborator

@ivanpopelyshev ivanpopelyshev commented May 20, 2019

Finally I found the case where our x / resolution * resolution > x problem can wreck everything.

In my client's case filter has resolution param that can be add some blur to the filter using cheap method. If the texture is reated first time, it can force a wrong FrameBuffer size.

The method in quesion is getFilterTexture(resolution), but for demo I just change global constant, its the same really.

I'm sure there are other cases like this, I will make full investigation later and we'll find a better fix. However this PR also makes code easier, that's why I suggest to merge it.

Previously we discussed that problem in #4745

Demo: https://www.pixiplayground.com/#/edit/GzB3lpQ91nFdY8zYyuQE4
Fixed: https://www.pixiplayground.com/#/edit/jfgheFVU2ELNe_Y52hKRQ

@ivanpopelyshev ivanpopelyshev added 🛸 X-Files Mysterious, unexplainable or elusive behavior that’s difficult to track down or reproduce. Plugin: Filters labels May 20, 2019
@bigtimebuddy bigtimebuddy added this to the v5.0.4 milestone May 28, 2019
@bigtimebuddy bigtimebuddy merged commit 6b66f36 into dev May 30, 2019
@englercj englercj deleted the dev-fix-filter-resolution-2 branch July 3, 2019 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛸 X-Files Mysterious, unexplainable or elusive behavior that’s difficult to track down or reproduce.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants