Original Post
Ok, this is my first OpenGL project, and really i'm quite pleased with the results so far. it's an OpenGL renderer for Tiberian Sun and Red Alert 2 .vxl files. I was doing everything in immediate mode while i was debugging the code, and now i want to speed it up by using a Display List to store the Object after it's translated to polys, so i copied everything between glBegin and glEnd to a seperate function, added GLuint vxlObj; to the global variables, put vxlObj=glGenLists(1); glNewList(vxlObj, GL_COMPILE); before glBegin(GL_TRIANGLES);, put glEndList(); after glEnd(); and added glCallList(vxlObj); to DrawGLScene() inplace of the code i moved. the debugger shows it is iterating thru the code properly to create the polys but it appears the display list is empty. Anyone have anyclue what i'm doing wrong?