For some reason I can't get OpenGL display lists to work with my Borland C++ Builder 5 projects. I made a small test application just to illustrate the problem. It uses the OpenGLPanel component (http://www.cobweb.net/~dplakosh/) to do OpenGL drawing, but that's not causing the problem, the same thing happens when drawing directly to the form.
Here's how I set up my display list (in the form's OnCreate event):

The problem is, nothing shows up on the form. It's completely black. If I replace the glCallList call with DrawScene() it works fine, so there's nothing wrong with the rendering code.
I have this same problem whenever I try to use display lists with BCB. What am I doing wrong? Any Borland gurus out there who could help me?

dbugger

08-13-2003, 11:47 PM

You must have a valid gl context before compiling your display list.

08-13-2003, 11:54 PM

Thanks, that helped. Strange, though...I was almost sure I had tried placing that code in all possible locations.