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

glGenerateMipmap() requires OpenGL 3.0 #14

Open
piernov opened this issue Oct 12, 2021 · 0 comments
Open

glGenerateMipmap() requires OpenGL 3.0 #14

piernov opened this issue Oct 12, 2021 · 0 comments

Comments

@piernov
Copy link
Contributor

piernov commented Oct 12, 2021

README.md recommends using glGenerateMipmap() which requires OpenGL 3.0 (not available in VirtualBox for example, limited to 2.1, and some older systems).
README.md should warn about this requirement and suggest an alternative for OpenGL >= 1.4 && < 3.0:

glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE);

or no automatic mipmap generation for OpenGL < 1.4.

https://www.khronos.org/opengl/wiki/Common_Mistakes#Automatic_mipmap_generation

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