Skip to content

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