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

glTextureParameter example incomplete texture #11

Open
tilkinsc opened this issue Dec 26, 2022 · 1 comment
Open

glTextureParameter example incomplete texture #11

tilkinsc opened this issue Dec 26, 2022 · 1 comment

Comments

@tilkinsc
Copy link

We need to use glTextureParameter to set mipmap levels. Or else the texture is incomplete.

@rachit7645
Copy link

The number of mipmap levels can be found by the formula 1 + floor(log2(max(width, height))).

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

No branches or pull requests

2 participants