When I ask SDL for a hardware surface I don't get one
So to test out SDL I tried compiling the hello world program here: http://cone3d.gamedev.net/cgi-bin/in...ls/gfxsdl/tut1
Made some changes for diagnostic reasons:
Now according to the output I'm not getting SDL is unable to make screen a double buffered hardware surface.
const SDL_VideoInfo* VideoInfo = SDL_GetVideoInfo();
screen = SDL_SetVideoMode(640,480,32,SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_FULLSCREEN);
printf("%u\n%u\n", screen->flags, VideoInfo->hw_available);
Is there something wrong with my computer that it won't give SDL a double buffered hardware surface when it asks for one? Or am I making an elementary mistake?