[SDL] Runtime opengl failure

Simon simon.xhz at gmail.com
Sun Jan 7 11:55:13 PST 2007


Hi there,
   I'm pretty sure it's just a simple glitch, however I've been fighting 
with it for a good couple hours and now giving up...

   SDL_SetVideoMode() fails to open the window whenever I have 
SDL_OPENGL as one of the flags.  My program outputs some useful 
debbuging information, then verifies it can open the window with 
SDL_VideoModeOK(), and then tries to open it with SDL_SetVideoMode(), 
and there it fails.

   Code is irrelevant to this issue as no modification was done to the 
code.  Modification was made to the system: I recently reinstalled 
slackware linux 11.  All this said, I do have the gl libs/headers in 
place and the program compiles fine.  I have installed the latest nvidia 
drivers as well (I even tried rolling back to previous drivers).

   Btw, as per the doc, I put the SDL_GL_SetAttribute() before the call 
to SDL_SetVideoMode()...  but even then, it was working before I 
reinstalled!  =(

Thanks for any help!
   Simon

Here's what's the debugging output:

Creating window using OpenGL
Starting SDL...  Done!
Starting Graphic system using: x11
   Hardware surfaces?  No
   Is there a window manager available?  1
   Are hardware to hardware blits accelerated?  0
   Are hardware to hardware colorkey blits accelerated?  0
   Are hardware to hardware alpha blits accelerated?  0
   Are software to hardware blits accelerated?  0
   Are software to hardware colorkey blits accelerated?  0
   Are software to hardware alpha blits accelerated?  0
   Are color fills accelerated?  0
   Total amount of video memory: 0 KB
   Bits Per Pixels: 32

GL Vendor Name                          (null)
GL Version                              (null)
GL Shading Language Version             n/a
GL Renderer Name                        (null)
OpenGL Extensions                       (null)
--
Trying to open window at: 640x480 @ 32 bpp
   Verifying video mode...  32 bits per pixels
   Opening window...  Could not open window with specified mode.




More information about the SDL mailing list