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

OpenGL deprecation issues #6

Open
superwills opened this issue Mar 12, 2024 · 1 comment
Open

OpenGL deprecation issues #6

superwills opened this issue Mar 12, 2024 · 1 comment

Comments

@superwills
Copy link

A lot of the code shown here is really great, but some things, like display lists have been deprecated in OpenGL 3.1 (WGL fonts etc)

That means a lot of this code appears to work in some OpenGL programs, as long as you haven't kicked your OpenGL state machine into GL 3.1+ mode

Once you kick your OpenGL state machine into GL 3.1+ mode, it seems a lot of the deprecated features just stop working and you get a blank screen

Deprecation warnings should be added to this code if possible so people know that parts of this code just won't work on later releases of OpenGL

@superwills
Copy link
Author

I found adding an extra glDisable( GL_TEXTURE_2D ) call actually made my display lists work (even though there isn't any corresponding glEnable( GL_TEXTURE_2D ) in the program!). I think my program is crossing into some OpenGL UB and it's probably going to be untrustworthy if using any deprecated features

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