[SDL] SDL and OpenGL 2D problems

Daniel Phillips phillips at arcor.de
Wed Jan 29 09:35:01 PST 2003

On Wednesday 29 January 2003 13:12, Lance Duivenbode wrote:
> Now when I run the app, the area where the surface should be displayed
> is corrupted (like noise on a tv). I originally had this problem with
> images (i.e. trying to draw a PNG as an RGB instead of RGBA), but
> changing the format flag makes no difference.

There are almost as many possibilities for getting noise on the screen as 
there are for getting black :-)

Did you check that glDrawPixels draws a region of memory known to be filled 
with zero as black, and -1 as white?  (For this test you want GL_BLEND off.)



More information about the SDL mailing list