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

Possible error (omission) related to compressed textures and glGenerateMipmap() #54

Open
planteen opened this issue Sep 14, 2018 · 0 comments

Comments

@planteen
Copy link

planteen commented Sep 14, 2018

Page 265 says, "Once a texture has been loaded as a compressed texture, it can be used for texturing in exactly the same way as an uncompressed texture."

In my opinion, this statement about "exactly the same way" is not entirely true. Calling glGenerateMipmap() on a compressed texture returns an error in most drivers. This is not noted on page 265 or on page 242 where "Automatic Mipmap Generation" is covered. It would be helpful if the restriction on compressed texture mipmap generation is noted somewhere.

The ES 3.0 man page says that glGenerateMipmap() is unsupported on compressed base level:

GL_INVALID_OPERATION is generated if the levelbase array is stored in a compressed internal format.

http://docs.gl/es3/glGenerateMipmap

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

1 participant