View Full Version : Why glGenLists() function is returned 0 ?

05-28-2002, 03:18 AM
Hi Guys...

Plz...Very Important..
I want to display list but glGenLists() is returned zero.

Why glGenLists() function is returned 0 ?

Help... Thanks...

[This message has been edited by choi1012 (edited 05-28-2002).]

05-28-2002, 04:03 AM
glGenLists returns 0 when you pass a negative range or you are using it between glBegin() and glEnd (). In another case it must works properly.

05-28-2002, 04:09 AM
Also make sure you create the window before calling glGenLists. This may be a problem if the call is in a constructor.

05-28-2002, 03:47 PM
Thanks.. guys..^^;

But Not solve a my problem..

09-23-2002, 05:33 PM
but why when I calls glGenLists returned zero in a multithread.? it works well in main thread

09-23-2002, 10:17 PM
An renderContext is bound to one thread.. you should do all opengl stuff in the same thread that created the RC.