PDA

View Full Version : Problem with display lists



Refrigerator
08-26-2001, 09:06 AM
Hi,

I want to get a free Display list index. But everytime I call the glGenLists function (e.g. index=glGenLists(1); )it returns 0.
Is there anything I have to activate before I can use this function ???

Thanks for your help !!!

Refrigerator

mikael_aronsson
08-26-2001, 01:42 PM
Hi !

No there is nothing to activate it should work straight out of the box, what you might be doing is to call glGenLists() between glBegin() and glEnd(), you cannot do that.

Mikael

Inquisitor
08-26-2001, 06:18 PM
And you must create a valid rendering context by using wglCreateContext before all other OpenGL commands.