color depth question

I was wondering if there is a restriction in the color depth that OpenGL supports. Here’s what is going on:

I have a panel with openGL on a form. To simulate transparent background of the panel I grab the color of the form and make that my clear color in OGL. Everything is fine under 16bit or higher, but I get black in 256 colors - regardless of form color.

any ideas?

256 colors is called “color-index mode” in OpenGL. Lots of things in OpenGL don’t work or work differently when using color-index mode.

As far as your particular problem – it sounds to me like you didn’t set up a palette somewhere, so all the color end up black.