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.Code:SDL_Surface *screen; const SDL_VideoInfo* VideoInfo = SDL_GetVideoInfo(); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); 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?