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

Fix for non-square DDS textures #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

alteredq
Copy link

Non-square DDS textures were throwing GL warnings in Chrome console due to having fractional width / height for some mipmap levels.

This fix limits mipmap width / height sizes to a minimum of 1.

This was causing tons of GL warnings thrown into Chrome console due to getting fractional width / height when texture wasn't square.
@inolen
Copy link

inolen commented Nov 2, 2012

I just ran into this problem and came here to post effectively the same patch 👍

@conordickinson
Copy link

A similar fix needs to be implemented inside crn.cpp for crn_get_uncompressed_size and crn_decompress, which of course then needs to be recompiled into crn_decomp.js

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.

3 participants