events/states that would cause glGenlists to return error "Invalid Operation"

Does anyone know where I can find the full list of events that would cause
glGenLists to return th error “Invalid Operation”? Either that or what the
requirments are for using glGenLists in a windows application?



You will probably get this is you don’t have a valid OpenGL context, probably also if you try it within a Begin() End()pair.