10000 Fixing unpack with alignment by kan6868 · Pull Request #803 · coronalabs/corona · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Fixing unpack with alignment #803

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

Merged
merged 2 commits into from
Jun 6, 2025

Conversation

kan6868
Copy link
Contributor
@kan6868 kan6868 commented Apr 24, 2025

@ggcrunchy and I discussed how Rtt_GLTexture pixel packaging is quite broken, causing the weird "multiple of 4" mask rule.

Additionally, if the texture width isn’t divisible by 4 and format texture is RGB, OpenGL automatically adds padding at the end of each row, which leads to display bugs in the last line of pixels in bytemap plugin.

After fixing this issue, it now works correctly with masks of any size, even those not divisible by 4.

image

@kan6868 kan6868 requested a review from Shchvova as a code owner April 24, 2025 23:27
@Shchvova Shchvova merged commit 1dec8e7 into coronalabs:master Jun 6, 2025
1 check passed
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.

2 participants
0