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

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

Merged
merged 3 commits into from
Apr 15, 2021

Conversation

MarkCallow
Copy link
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
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.

None yet

2 participants