Skip to content

Conversation

@AGulev
Copy link
Contributor

@AGulev AGulev commented Jul 28, 2025

Fixed an issue where multipage atlas can't be transcoded and used in HTML5 on Chrome on Android. In such cases, the ASTC format will be marked as unsupported, and the next suitable format will be used (ETC2 in most cases).

Fix #11009

@AGulev AGulev requested a review from ekharkunov July 28, 2025 14:25
GLint err = glGetError();
if (err != 0)
{
context->m_TextureFormatSupport &= ~(1 << TEXTURE_FORMAT_RGBA_ASTC_4X4);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is outdated, one of the updates anciently removed this old workaround so I restore it using context->m_ASTCSupport instead.

0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,

0xFC, 0xFD, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed buffer to match size

@AGulev AGulev merged commit dcfa9fa into dev Jul 28, 2025
20 checks passed
@AGulev AGulev deleted the issue-11009 branch July 28, 2025 15:12
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.

Mobile web build error when using paged atlas

3 participants