[compiz] LIBGL_ALWAYS_INDIRECT=1 patch fix - any reason why it's not included?

Michel Dänzer michel at tungstengraphics.com
Wed Jul 4 06:02:24 PDT 2007


On Wed, 2007-07-04 at 13:29 +0100, Colin Guthrie wrote:
> 
> I was just struggling with the problem of starting compiz while having
> to use LIBGL_ALWAYS_INDIRECT environment variable.
> 
> In our packages we have a patch that means we do not need to set this
> variable as it searches also the glxServerExtensions.

This is becoming a FAQ...

An extension can only be assumed to work if it's in the result of
glXQueryExtensionsString(). If you don't believe me, try using
GLX_EXT_texture_from_pixmap with a direct rendering context (and free
drivers) - doesn't work, even though it's listed in both server and
client strings. Moreover, when forcing an indirect context via the last
parameter to glXCreateContext(), the GLX API provides no means to find
out that the extension would indeed work (glXQueryExtensionsString is
context independent), so the LIBGL_ALWAYS_INDIRECT workaround is needed.
See https://bugs.freedesktop.org/show_bug.cgi?id=8160 and some recent
discussion on the mesa3d-dev or dri-devel list.


-- 
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer



More information about the compiz mailing list