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

Legacy opengl cause GL_INVALID_OPERATION #966

Closed
sandsc opened this issue Jun 30, 2022 · 3 comments
Closed

Legacy opengl cause GL_INVALID_OPERATION #966

sandsc opened this issue Jun 30, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@sandsc
Copy link

sandsc commented Jun 30, 2022

use glBegin glVertex glEnd cause "GL_INVALID_OPERATION error generated. Calling glFlush from the current immediate mode state is invalid. Check glBegin() / glEnd() pairs." message is outputed by gldebugmessagecallback,
it seems that when calls glVertex wglGetProcAddress will be called which calls glFlush implicitly on windows.

see also:

The basic problem is Microsoft's opengl32.dll calls glFlush from wglGetProcAddress()
haskell-opengl/OpenGL#87

@sandsc sandsc added the bug Something isn't working label Jun 30, 2022
@HurricanKai
Copy link
Member

I don't think this is anything we can fix? Additionally this Is Legacy OpenGL, which new applications really shouldn't use.

@HurricanKai HurricanKai closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2022
@Redhacker1
Copy link
Contributor

Redhacker1 commented Jun 30, 2022

I happen to agree. Legacy OpenGL should IMHO probably stop actually being supported or bindings generated for it if possible

@Beyley
Copy link
Contributor

Beyley commented Jun 30, 2022

I happen to agree. Legacy OpenGL should IMHO probably stop actually being supported or bindings generated for it if possible

I dont think we should cut support for something in 2.x because one platform has issues with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants