Sign in to follow this  
ATGardner23

glGenLists returns error

Recommended Posts

ATGardner23    122
My glGenLists(1) call return 0. When I do glGetError(), I recieve the GL_INVALID_OPERATION error, which shold appear if : GL_INVALID_OPERATION is generated if glGenLists is called between a call to glBegin and the corresponding call to glEnd. (quoting from the reference page). Since I did not put it between glBegin and glEnd, what else can cause this error?

Share this post


Link to post
Share on other sites
ATGardner23    122
I am not sure what it means..

oh.. in the middle of writing it I got it.. it was in a local stack variable, which is being initialized before the glInit.. OK. It works now.
thanks for the tip.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this