hi
Im using opengl and sdl (1.2) on Linux (slackware 10)
and when I try to setup the stencil buffer with this
line:
SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, 16);
the program exit with this error: Video mode set
failed: Couldn’t find matching GLX visual.
if I coment that line the program will run but I need
the stencil buffer for shadows calculations in my
engine.
someone know how to fix it?
abner_______________________________________________________
Yahoo! Mail - Agora com 250MB de espa?o gratuito. Abra
uma conta agora! http://br.info.mail.yahoo.com/
I’m not sure if a 16 bit stencil buffer is widely supported. Try requesting a 32 bpp mode with a 8 bit stencil. Note that 16 bpp modes (almost?) never support a stencil buffer.
Gabriel Gambetta
ARTech - Development Team
ggambett at artech.com.uy> ----- Original Message -----
From: sdl-bounces+ggambett=artech.com.uy@libsdl.org [mailto:sdl-bounces+ggambett=artech.com.uy at libsdl.org] On Behalf Of abner neto
Sent: S?bado, 11 de Diciembre de 2004 05:42 p.m.
To: sdl at libsdl.org
Subject: [SDL] stencil buffer problem
hi
Im using opengl and sdl (1.2) on Linux (slackware 10)
and when I try to setup the stencil buffer with this
line:
SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, 16);
the program exit with this error: Video mode set
failed: Couldn’t find matching GLX visual.
if I coment that line the program will run but I need
the stencil buffer for shadows calculations in my
engine.
someone know how to fix it?
abner
Yahoo! Mail - Agora com 250MB de espa?o gratuito. Abra
uma conta agora! http://br.info.mail.yahoo.com/
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
hi
Im using opengl and sdl (1.2) on Linux (slackware 10)
and when I try to setup the stencil buffer with this
line:
SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, 16);
Run glxinfo and look at the visuals listed at the bottom of all that
data it dumps out. Check to see if you have a visual that supports a 16
bit stencil buffer along with all the other buffers you are asking for.
You might find that your card does not have a mode that supports a 16
bit stencil buffer.
To fix the problem you either have to use a mode your video card
supports or buy a video card that supports the mode you need.
Bob PendletonOn Sat, 2004-12-11 at 13:42, abner neto wrote:
the program exit with this error: Video mode set
failed: Couldn’t find matching GLX visual.
if I coment that line the program will run but I need
the stencil buffer for shadows calculations in my
engine.
someone know how to fix it?
abner
Yahoo! Mail - Agora com 250MB de espa?o gratuito. Abra
uma conta agora! http://br.info.mail.yahoo.com/
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
–
±-------------------------------------+