Why glGenLists() function is returned 0 ?

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).]

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.

Also make sure you create the window before calling glGenLists. This may be a problem if the call is in a constructor.

Thanks… guys…^^;

But Not solve a my problem…

but why when I calls glGenLists returned zero in a multithread.? it works well in main thread

An renderContext is bound to one thread… you should do all opengl stuff in the same thread that created the RC.