Skip to content

Handle PVRTC minimum 2 block requirement. Fixes issue #390.#398

Merged
MarkCallow merged 3 commits intomasterfrom
issue390
Apr 15, 2021
Merged

Handle PVRTC minimum 2 block requirement. Fixes issue #390.#398
MarkCallow merged 3 commits intomasterfrom
issue390

Conversation

@MarkCallow
Copy link
Copy Markdown
Collaborator

Note that the key thing about PVRTC1 is that there must be at least 2 texel blocks in each dimension. That is what was missing. The formula in the GL EXT spec. for the image size is expressed bizarrely, especially the + 7 part for rounding up which is unnecessary given the image sizes have to be a power of 2. The calculation after this PR is equivalent.

@MarkCallow MarkCallow merged commit 2034ce7 into master Apr 15, 2021
@MarkCallow MarkCallow deleted the issue390 branch April 15, 2021 11:55
@lexaknyazev lexaknyazev mentioned this pull request Apr 15, 2021
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 21, 2024
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
KaperD pushed a commit to KaperD/KTX-Software that referenced this pull request Feb 22, 2024
richgel999 pushed a commit to BinomialLLC/KTX-Software-Binomial-Fork that referenced this pull request Mar 9, 2026
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