Got a bug with the Linux GL implementation

Using a 3Dfx Voodoo and SDL in fullscreen, if fxmesa dies, SDL doesn’t
properly clean up the video mode, and it gets stuck in 640x480. Further to
that, you can’t switch up to 800x600 again.

Any thoughts, or is this beyond our control? It better not be because on
average Seismic (my 3D engine… seismic, quake, yeah yeah) dies about 10
times a night that way, and it drives me bonkers.

If you are using the latest CVS snapshot, it shouldn’t get stuck if you
properly call SDL_Quit() if something bad happens. I’m not sure if fxmesa
overrides the default crash signal handlers that SDL uses, but generally
SDL tries to clean up if it receives a SIGSEGV.

If all else fails, try running testgl -fullscreen, and after it runs you
should be able to switch video modes again. Mike has a script which runs
and automatically fixes his video mode again, maybe he’ll share it. :slight_smile:

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

If you are using the latest CVS snapshot, it shouldn’t get stuck if you
properly call SDL_Quit() if something bad happens. I’m not sure if fxmesa

Yeah, make sure you do the loki_signalcleanup() after the
SDL_SetVideoMode(). Er, you don’t have loki_signalcleanup, but if you
did, that’s what you’d do :).

If all else fails, try running testgl -fullscreen, and after it runs you
should be able to switch video modes again. Mike has a script which runs
and automatically fixes his video mode again, maybe he’ll share it. :slight_smile:

It’s nothing special, just ‘./testgl -fullscreen; xvidtune -next’ as a
little alias/script I use.

m.On Sun, Jan 30, 2000 at 03:43:55PM -0800, Sam Lantinga wrote:


Programmer "I wrote a song about dental floss,
Loki Entertainment Software but did anyone’s teeth get cleaner?"
http://lokigames.com/~briareos/ - Frank Zappa, re: the PMRC

If you are using the latest CVS snapshot, it shouldn’t get stuck if you
properly call SDL_Quit() if something bad happens. I’m not sure if
fxmesa

Yeah, make sure you do the loki_signalcleanup() after the
SDL_SetVideoMode(). Er, you don’t have loki_signalcleanup, but if you
did, that’s what you’d do :).

Can you toss me that, or is it proprietary? Or at the very least, give me a
few hints about what the hell it does?

It’s nothing special, just ‘./testgl -fullscreen; xvidtune -next’ as a
little alias/script I use.

Tried it. Doesn’t work. Maybe it’s just my shitty - er, unstable - code?
Nah, shouldn’t be. I’ll try to get a GL demo to explode and see what that
does.

m.

Cheers,

Nicholas

Nicholas Vining “While you’re out there struggling
vining at pacificcoast.net with your computer, I’m naked,
icq: 20872003 clueless, and feeling good!”
- Ratbert

----- Original Message -----
From: briareos@lokigames.com (Michael Vance)
To: sdl at lokigames.com
Date: Monday, January 31, 2000 10:07 AM
Subject: [SDL] Re: Got a bug with the Linux GL implementation
On Sun, Jan 30, 2000 at 03:43:55PM -0800, Sam Lantinga wrote: