OpenGL, Glide, and Voodoo

(Note to self: add this to the FAQ)

If you are using glide-based GL on a Voodoo card, you may have problems
with the system cursor.

The best way to avoid these problems is to use the following sequence:

SDL_Init(…)
SDL_ShowCursor(0);
SDL_WM_GrabInput(SDL_GRAB_ON);
SDL_SetVideoMode(…)

It’s the only way I know of to work around the Voodoo bugs.
If the user is not using Glide, then you may be able to allow them to
ungrab input and/or toggle the cursor, but if they’re using Glide they
can’t show the cursor or leave the window.

(And no, I don’t know of a standard way to tell if the GL is glide-based.
Some versions of Mesa, but not all, say so in the renderer string.)

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software