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

[ME] Fix mipmap calculation in WebP #268

Merged

Conversation

RikkiBalboa
Copy link
Contributor

When mipmaps are generated, more bytes need to be allocated for the texture that is going to be generated. The original calculation had a chance to allocate too few bytes when using a non-square texture.
The new calcaution fixes that. Thanks to @takahiro0327 for the formula.

@ManlyMarco ManlyMarco changed the title [ME] Fix mipmap calculation [ME] Fix mipmap calculation in WebP Jun 19, 2024
@ManlyMarco ManlyMarco merged commit b67836c into IllusionMods:master Jun 19, 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.

2 participants