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

Error after glewInit() for OpenGL 3.2 and above with SDL2 - Core context #3

Closed
lemanyk opened this issue Oct 10, 2013 · 6 comments
Closed
Milestone

Comments

@lemanyk
Copy link

@lemanyk lemanyk commented Oct 10, 2013

Here is my code http://pastie.org/8392206

Compile was success, but then on run it fails with error "invalid enumerant"

@nigels-com
Copy link
Owner

@nigels-com nigels-com commented Oct 10, 2013

Is it a core (also called "forward compatible") context?

  • Nigel
@lemanyk
Copy link
Author

@lemanyk lemanyk commented Oct 10, 2013

sorry, but i don't know
i use glew 1.10, sdl2.0, nvidia 325.15 with opengl 4.3 support, on linux
i see, it's prevalent problem http://www.opengl.org/wiki/OpenGL_Loading_Library#GLEW

@nigels-com
Copy link
Owner

@nigels-com nigels-com commented Oct 10, 2013

Indeed, most likely a core context. There was a patch for 1.10.0 that didn't pass QA on Windows.
Perhaps next time around...

  • Nigel
@nigels-com nigels-com changed the title Error after glewInit() for OpenGL 3.2 and above with SDL2 Error after glewInit() for OpenGL 3.2 and above with SDL2 - Core context Feb 19, 2015
@russelltg
Copy link

@russelltg russelltg commented Jun 5, 2015

Running a similar app under gDEBugger, it says that the error is on glGetString(GL_EXTENSIONS), which is a deprecated function.

@karolherbst
Copy link

@karolherbst karolherbst commented Dec 24, 2015

well now divinitiy original sin triggeres that with mesa drivers

@nigels-com
Copy link
Owner

@nigels-com nigels-com commented Nov 13, 2016

Probably resolved with GLEW 2.0.0, closing.
Thanks for the report.

@nigels-com nigels-com closed this Nov 13, 2016
chkob pushed a commit to chkob/glew that referenced this issue Feb 23, 2018
Use CMAKE_BINARY_DIR instead CMAKE_SOURCE_DIR for setting build output directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.