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

Function called without first calling 'glutInit' #29

Open
saulrh opened this issue Mar 1, 2013 · 8 comments
Open

Function called without first calling 'glutInit' #29

saulrh opened this issue Mar 1, 2013 · 8 comments

Comments

@saulrh
Copy link
Collaborator

saulrh commented Mar 1, 2013

I get the following error after GRIP loads a world:

freeglut ERROR: Function <glutSolidCube> called without first calling 'glutInit'.

The world loads, but GRIP crashes as soon as it tries to render. GRIP is unusable in this state.

@ehuang3
Copy link
Collaborator

ehuang3 commented Mar 1, 2013

I will replace drawCube (and other draw calls) with pure gl calls instead of glut calls. I believe dart's apps uses glut but it seems grip does not use glut.

@saulrh
Copy link
Collaborator Author

saulrh commented Mar 1, 2013

Turns out it was a bad commit that Tobias made to DART; it's been fixed.

@saulrh
Copy link
Collaborator Author

saulrh commented Mar 1, 2013

You can remove the glut calls if you want, though. Probably not a big deal.

@ehuang3
Copy link
Collaborator

ehuang3 commented Mar 1, 2013

Let's leave this issue open for now, I want to remove the glut calls because they will crash GRIP if used.

@tobiaskunz
Copy link
Contributor

Why are they crashing GRIP?

@ehuang3
Copy link
Collaborator

ehuang3 commented Mar 1, 2013

I believe glut expects to be called within it's own execution context, glutMainLoop(). Therefore it reports an error when called out of context. glutSolidCube is a convenience function for drawing a cube that glut provides.

@tobiaskunz
Copy link
Contributor

Are we calling glutInit when using GRIP? May be we are just not initializing glut.

@ehuang3
Copy link
Collaborator

ehuang3 commented Mar 1, 2013

No, we are not calling glutInit in GRIP. wx runs the main loop in GRIP. I do not think we can run glut in GRIP as glut expects control of the main loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants