Mercurial > sdl-ios-xcode
view docs/index.html @ 4106:12bb6311fd5d SDL-1.2
Hans de Goede fixed bug #495
When running boswars: http://www.boswars.org/ on a machine with intel
integrathed graphics it crashes when it tries to play the initial theora
splashscreen video:
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 140 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 25
Current serial number in output stream: 26
boswars: xcb_xlib.c:41: xcb_xlib_lock: Assertion `!c->xlib.lock' failed.
Aborted
I recognized this problem from a few years back, when I encountered it while
working on the Xv blitter for xmame. The problem is that for some reason
creation the Xvport and XvImage succeeds, and failure (lack of resources / hw
capability?) is only indicated during the first XvPut[Shm]Image. I've written a
patch for SDL using the work around for this I developed for xmame (and which
is still used successfully in xmame after many years of usage).
I'll admit it isn't very pretty, but after investigating several possibilities
this was the best option, any other fixes would need changes to the SDL api and
abi.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 29 Dec 2007 02:23:48 +0000 |
parents | c6a447c98584 |
children |
line wrap: on
line source
<!DOCTYPE HTML PUBLIC "-//Norman Walsh//DTD DocBook HTML 1.0//EN"> <HTML> <HEAD><TITLE>Simple DirectMedia Layer Introduction</TITLE></HEAD> <BODY BGCOLOR="#FFF8DC" TEXT="#000000" LINK="#0000ee" VLINK="#551a8b" ALINK="#ff0000"> <DIV CLASS="NAVHEADER"> <HR ALIGN="LEFT" WIDTH="100%"> </DIV> <DIV CLASS="PREFACE"> <H2><A NAME="AEN8">Simple DirectMedia Layer Introduction</A></H2> <P> This library is designed to make it easy to write games that run on many different platforms using the various native high-performance media interfaces, (for video, audio, etc) and presenting a single source-code level API to your application. This is a fairly low level API, but using this, completely portable applications can be written with a great deal of flexibility. </P><P> An introduction to SDL can be found online at: <A HREF="http://www.libsdl.org/intro.php" TARGET="_top"> http://www.libsdl.org/intro.php</A> </P><P> Tutorials on a variety of topics can be found online at: <A HREF="http://www.libsdl.org/tutorials.php" TARGET="_top"> http://www.libsdl.org/tutorials.php</A> </P><P> Documentation in Wiki form can be found online at: <A HREF="http://www.libsdl.org/cgi/docwiki.cgi/" TARGET="_top"> http://www.libsdl.org/cgi/docwiki.cgi/</A> </P><P> Enjoy! </P><P> Sam Lantinga <TT CLASS="EMAIL"><<A HREF="mailto:slouken@libsdl.org"><A HREF="mailto:slouken@libsdl.org" TARGET="_top" >slouken@libsdl.org</A></A>></TT> </P> <P> <br><br><HR> <H1>Table of Contents</H1> <UL> <LI><A HREF="html/index.html">Full Table of Contents</A></LI> <LI><A HREF="html/guide.html">The SDL Guide</A></LI> <LI><A HREF="html/reference.html">The SDL Reference</A></LI> <UL> <LI><A HREF="html/general.html">Initialization</A></LI> <LI><A HREF="html/video.html">Video</A></LI> <LI><A HREF="html/wm.html">Window Manager</A></LI> <LI><A HREF="html/event.html">Event Handling</A></LI> <LI><A HREF="html/joystick.html">Joystick</A></LI> <LI><A HREF="html/audio.html">Audio</A></LI> <LI><A HREF="html/cdrom.html">CDROM</A></LI> <LI><A HREF="html/thread.html">Threads</A></LI> <LI><A HREF="html/time.html">Timers</A></LI> </UL> </UL> </DIV ></BODY ></HTML >