libSDL and $DISPLAY

Stephen M. Webb stephen.webb at bregmasoft.ca
Thu Jun 27 19:50:12 UTC 2013


On 06/27/2013 02:53 PM, Evgeni Golov wrote:
> 
> I wonder: is this general SDL behavior? Or some weird combo of my
> GPU/drivers/Xorg/SDL?

When SDL is running its video initialization, it probes a (precompiled) list of possible video back ends.  As each
fails, it moved on to the next until the list is exhausted, in which case it uses the last (failing) back end.

If you do not give the X11 back end a default display, or give an invalid display, it will fail to initialize and some
other back end will be selected (which will likely also fail).  It looks like this flaky behaviour was fixed for SDL2.

It's possible the fallback framebuffer driver would work in SDL 1.2 if you were running with root privs.  Still, the
weird behaviour sounds like a bug in libSDL (it should handle total catastrophic initialization failure with more grace
and aplomb).

-- 
Stephen M. Webb  <stephen.webb at bregmasoft.ca>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sdl-maintainers/attachments/20130627/bc866c50/attachment.sig>


More information about the Pkg-sdl-maintainers mailing list