Delphi color picking

I have an opengl panel which I have created in delphi and am trying to pick colors. I am not having any luck with the glReadPixel command.

Here’s what I’m trying to do. I have a triangle with vertices reg, green and blue. I want to be able to select the blended color for a drawing program. I want to stick with opengl for this. If anyone has any ideas please help.

glReadPixel should work fine, unless if your backbuffer gets “invalidated”. Render to backbuffer and read immediatly, then swap.

V-man