Hi. I am working wih the WGL library in order to set up an overlay buffer. I am using an Oxygen GVX1 video card. I have finally managed to set up a color palette with all the colors I need but I stumbled upon a problem. If I do not enable antialiasing the colors (referring to the color palette I created) are correct but when I enable antialiasing, the colors of my objects change into different colors and make a mess of all my display objects. I use the following code for antialiasing:
glEnable(GL_LINE_SMOOTH);
glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glHint (GL_LINE_SMOOTH_HINT, GL_NICEST);
I found that the color defect problem does not occur when I comment out the first line but antialiasing does not become enabled anymore. Can anyone help me with this problem? Thank you in advance.



