We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
In my project, when i init OpenGL with gl3wInit i have an error : GL3W_ERROR_OPENGL_VERSION
The code below (get from here) return strange value. I have put it in the parse_version function.
int major, minor; glGetIntegerv(GL_MAJOR_VERSION, &major); glGetIntegerv(GL_MINOR_VERSION, &minor); printf("%d.%d\n", major, minor);
printf return : 0.1275
any solution ? Thanks for help
The text was updated successfully, but these errors were encountered:
Can you post a more complete code sample for how you create OpenGL context?
You probably have to request core profile context. In glut goes something along the lines of
glutInit(&argc, argv); glutInitContextVersion(4, 6); glutInitContextProfile(GLUT_CORE_PROFILE);
or
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6);
for glfw.
Sorry, something went wrong.
My bad, wrong copy/paste from example.
Thanks
No branches or pull requests
Hi,
In my project, when i init OpenGL with gl3wInit i have an error : GL3W_ERROR_OPENGL_VERSION
The code below (get from here) return strange value. I have put it in the parse_version function.
printf return : 0.1275
any solution ? Thanks for help
The text was updated successfully, but these errors were encountered: