OpenGL and DGA coexist?

Can OpenGL and DGA coexist at all? I download the OpenGL tutorial code from nehe.gamedev.net (lesson03,Linus/SDL version).
The original code can be compiled and run without any problem. As soon as I enable the DGA, the program crashed and jumped
back to the login in screen. I am running Mandrake 9.1 and using NVedia GeForce 4 video card.

Can OpenGL and DGA coexist at all? I download the OpenGL tutorial code from nehe.gamedev.net (lesson03,Linus/SDL version).
The original code can be compiled and run without any problem. As soon as I enable the DGA, the program crashed and jumped
back to the login in screen. I am running Mandrake 9.1 and using NVedia GeForce 4 video card.

No, they can’t, at the moment. It’s an X thing.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

If you enable DGA (set environ variable SDL_VIDEODRIVER=dga) for SDL,
you will not be able to launch SDL+OGL programs… You need restore:
SDL_VIDEODRIVER=x11. This is IMHO, but is my experience.

Tony Wu wrote:> Can OpenGL and DGA coexist at all? I download the OpenGL tutorial code

from nehe.gamedev.net (lesson03,Linus/SDL version).
The original code can be compiled and run without any problem. As soon
as I enable the DGA, the program crashed and jumped
back to the login in screen. I am running Mandrake 9.1 and using NVedia
GeForce 4 video card.