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: correct texture dimension comparison in glUploadImageResource #11230

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

GoodBoyDigital
Copy link
Member

@GoodBoyDigital GoodBoyDigital commented Jan 24, 2025

Description of change

A little oversight on an if check in image uploader.

fixes #10866

Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Documentation is changed or added
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

Updated the condition for checking texture dimensions to ensure both width and height are equal, improving the accuracy of texture uploads.
@GoodBoyDigital GoodBoyDigital changed the title fix: correct texture dimension comparison in glUploadImageResource.ts fix: correct texture dimension comparison in glUploadImageResource Jan 24, 2025
Copy link

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 2f4f50e:

Sandbox Source
pixi.js-sandbox Configuration

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.

Bug: Resizing canvas does not update texture in some cases
2 participants