Comment 0 for bug 1280665

Revision history for this message
Joseph Yasi (joe-yasi) wrote :

libsdl1.2 always enables backingstore when it is present in the X server. For modern X servers, backingstore is implemented by redirecting through the composite extension. This causes tearing on SDL applications such as xbmc because the redirected rendering is not guaranteed to be synchronized.

A discussion of the problem by Nvidia is here: https://devtalk.nvidia.com/default/topic/679688/linux/tearing-in-sdl-1-2-apps-unless-composite-extension-is-completely-disabled-/post/4111287/#4111287

The upstream bug is here: https://bugs.freedesktop.org/show_bug.cgi?id=74158

I have a patch that restores a check for the SDL_VIDEO_X11_BACKINGSTORE environment variable before trying to enable backingstore.