OpenGL & SDL

I’ve finished the preliminary integration of SDL and OpenGL–context
creation only. The only problem I have right now is that fxMesa sets
an atexit() handler that destroys the context, so if you use Sam’s
atexit( SDL_Quit ) stuff, you try to destory the context after it
already is -> segfault. Lesson being, don’t use atexit. Just Say
No. Stick an explicit call to SDL_Quit at the end of your program.

You can look at it in my /home/michael/src/SDL/ directory. SDL people:
this will be going into a new 1.1 CVS branch of SDL. I’ll be testing
to make sure the event framework, etc., works next week.

m.–
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

; coyote at lokigames.com ;
sdl at lokigames.com

I’ve finished the preliminary integration of SDL and OpenGL–context
creation only. The only problem I have right now is that fxMesa sets
an atexit() handler that destroys the context, so if you use Sam’s
atexit( SDL_Quit ) stuff, you try to destory the context after it
already is -> segfault. Lesson being, don’t use atexit. Just Say
No. Stick an explicit call to SDL_Quit at the end of your program.

Cool. I’m not going to program tomorrow, being Christmas and all, but Boxing
Day I’ll hammer on it with a lump hammer and clean up as needed…
definitely a cool Christmas prezzy. Do the other context creators have the
same problem as fxMesa?

Nicholas

----- Original Message -----
From: briareos@lokigames.com (Michael Vance)
To: Sam Lantinga ; Burned Kreimeier
Date: Friday, December 24, 1999 5:47 PM
Subject: [SDL] OpenGL & SDL

definitely a cool Christmas prezzy. Do the other context creators have the
same problem as fxMesa?

No, only it is cool enough to install a signal handler for you that
blindly calls fxMesaDeleteContext(). We should fix it to decrement a
ref count or something…

m.On Fri, Dec 24, 1999 at 10:24:39PM -0800, Nicholas Vining 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

Hi,
I’ve tried to run a opengl application that use SDL libraries, but I
received this text:

Xlib: extension “GLX” missing on display “:0.0”.
Xlib: extension “GLX” missing on display “:0.0”.
Video mode set failed: Couldn’t find matching GLX visual

Anyone can help me?
tnx

Assuming you have the drivers installed correctly, and your system is
properly configured: the most likely reason for this error is that
you’re manually specifying a colour depth. IF your X Server isn’t
running at the depth you specify it won’t be able to create the display.

Try switching SDL_SetVideoMode( x,y, bpp, flags ) to
SDL_SetVideoMode(x,y, 0, flags ) to have SDL give you a display at
whatever colour depth the server is currently running at.

Otherwise, details… details…
Do other OpenGL programs work?
Sample code.
Video Card?
Driver version?
etc.On Tue, 2003-09-16 at 11:47, NighTiger wrote:

Hi,
I’ve tried to run a opengl application that use SDL libraries, but I
received this text:

Xlib: extension “GLX” missing on display “:0.0”.
Xlib: extension “GLX” missing on display “:0.0”.
Video mode set failed: Couldn’t find matching GLX visual

Anyone can help me?
tnx


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Jimmy <@Jimmy>
Jimmy’s World.org
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20030916/59f29985/attachment.pgp

Have you checked that you have a working OpenGL implementation in your setup?
These error messages suggest that you do not have any OpenGL drivers
installed.

Regards,
GregorAm Dienstag, 16. September 2003 17:47 schrieb NighTiger:

Hi,
I’ve tried to run a opengl application that use SDL libraries, but I
received this text:

Xlib: extension “GLX” missing on display “:0.0”.
Xlib: extension “GLX” missing on display “:0.0”.
Video mode set failed: Couldn’t find matching GLX visual

Anyone can help me?
tnx

— NighTiger wrote:

Hi,
I’ve tried to run a opengl application that use SDL
libraries, but I
received this text:

Xlib: extension “GLX” missing on display “:0.0”.
Xlib: extension “GLX” missing on display “:0.0”.
Video mode set failed: Couldn’t find matching GLX
visual

Anyone can help me?
tnx

Sounds like you’re missing glx or don’t have it
correctly installed.

On my system, the dynamic library is installed under:
/usr/X11R6/lib/modules/extensions/libglx.so

if you DO have this file, you’ve probably just not
correctly setup your config file… the 4.3.0 config
file on my system is located at: /etc/X11/XF86Config
(not sure where older versions put this?)

Under the Module section, make sure there’s a line:
Load "glx"
if it isn’t there, add it, and reboot your x server.__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Hi!

The documentation of the SDL_CondWait() says:==
Wait on the condition variable cond and unlock the provided mutex. The
mutex must the locked before entering this function.

Which might be understood the way that it is enough to call:

SDL_LockMutex(lock);
SDL_CondWait(cond, lock);

and no other SDL_UnlockMutex(lock) call is needed.

Is just the documentation unclear and is the SDL_Cond equivalent to the
pthread conditions? If yes then it would be really worthy to update the
documentation and take the pthread descriptions as good examples of how to
write it. If not then what is the real behaviour?

best regards

STan