[SDL] sdl GL with stencil buffer

Oliver Batchelor shadows at ihug.co.nz
Wed Apr 26 03:57:25 PDT 2000

using  the below code without the stencil buffer line It works fine
but with the stencil buffer line it starts and bombs out with :

"Unable to create OpenGL screen: could not determine glx visual info"

this is using SDL ver 1.1.2 and XFree86 4 with the opengl Dri for
voodoo banshee working perfectly ....

        SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 );
        SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5);
        SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 );
        SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
        SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
        SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, 2 );

   SDL_SetVideoMode(w, h, 16, SDL_OPENGL | SDL_FULLSCREEN)

Oliver Batchelor

More information about the SDL mailing list