OpenGL and SDL, Weird Alpha Problem

I am currently working on changing the drawing portion of my code to
OpenGL Ortho, while still using SDL for everything else. I have run
into a fairly strange error where my color-keyed images (using 255,0,255
for the key) are being drawn with a white background (the pink is simply
replaced with white). I am calling SDL_SetColorKey and then
SDL_DisplayFormatAlpha, which I was told is the correct way to use color
keys in OpenGL. (by the way, blending is enabled… and I’ve tried
almost every combination of arguments to glBlendFunc that I could find.
Is there something else that needs to be done on the SDL side, or am I
missing some GL code somewhere)

James Turk wrote:

I am currently working on changing the drawing portion of my code to
OpenGL Ortho, while still using SDL for everything else. I have run
into a fairly strange error where my color-keyed images (using 255,0,255
for the key) are being drawn with a white background (the pink is simply
replaced with white). I am calling SDL_SetColorKey and then
SDL_DisplayFormatAlpha, which I was told is the correct way to use color
keys in OpenGL. (by the way, blending is enabled… and I’ve tried
almost every combination of arguments to glBlendFunc that I could find.
Is there something else that needs to be done on the SDL side, or am I
missing some GL code somewhere)

Sorry… it turned out to be a simple GL problem as well as a small
problem in my own thinking. :smiley: