   PyOpenGL, Vista and display lists
  Hi - I have a python opengl project that was coming along nicely, until I moved from an XP box onto a new vista machine.The XP machine is using PyOpenGL 2 which wraps up the opengl dll in swig, whereas the vista machine uses the newer PyOpenGL 3, which uses ctypes.Everything is fine until I call glGenLists(1), to generate a single display list. On the XP machine this works, but on the vista machine I get the return value 0, which seems to mean it can't allocate me a display list.What is likely to be the cause of this?Is PyOpenGL 3 getting the wrong underlying implementation (I heard that sometimes it picks up the Microsoft software only version instead of the hardware accelerated version)? Or is it some problem with Vista itself being too complicated for its own good and reserving bits of my graphics system for its own use?It's doubtful that it is specifically a python problem - but I'm all out of ideas at this point. Any help much appreciated.Thanks.   
  Returning 0 from anything like that is a general indication that you don't have a valid context at the time of calling. Display lists should be included in MS's implimentation however so it shouldn't fail for that reason.Check the glError return to see what error GL reports and check you have a valid context when you call the list generation function.And no, Vista doesn't interfer with graphics systems to that extent.   ;  Will look at the error return in a bit - not sure how Pyopengl does this (although I believe it has error handling built in to a certain extent).Is this just because my draw routine gets called too early? I recently ported from Tkinter to the wx GUI library, and its calling order might be different I suppose.   