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

GLUT Windows never appears / GLUT Warning: glutInit being called a second time #16

Open
jzy3d opened this issue Dec 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jzy3d
Copy link
Owner

jzy3d commented Dec 19, 2022

I solved this by noticing that console shows

GLUT Warning: glutInit being called a second time

Which was surprising since my program really called it once.

I got clue from this discussion, where someone suggests that glutInit must be called before any other call to OpenGL.

I solved this by invoking glutInit at the first line of my program and commenting where it was called initially.

@jzy3d jzy3d added the bug Something isn't working label Dec 19, 2022
@jzy3d jzy3d changed the title GLUT Windows never appears GLUT Windows never appears / GLUT Warning: glutInit being called a second time Dec 19, 2022
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

1 participant