[SDL] Re: sdl GL with stencil buffer

Franck Guillaud fguillaud at mailivs.ivs.fr
Wed Apr 26 04:25:21 PDT 2000


     Voodoo cards doesn't have stencil buffer.

     GLX is unable to satisfy your request.

                            Franck


Oliver Batchelor wrote:
> 
> 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)
> 
> thanks,
> Oliver Batchelor



More information about the SDL mailing list