Bug#377287: OpenGL HW acceleration doesn't work with SDL (with r300_dri)

Sam Hocevar sam at zoy.org
Sat Jul 8 09:00:52 UTC 2006


On Fri, Jul 07, 2006, Christian Aichinger wrote:

> | libGL: OpenDriver: trying /usr/lib/dri/r300_dri.so
> | libGL error: dlopen /usr/lib/dri/r300_dri.so failed (/usr/lib/dri/r300_dri.so: undefined symbol: _glapi_Dispatch)
> | libGL error: unable to find driver: r300_dri.so

> [...]

> The workaround proposed there (preloading libGL.so.1) actually
> works.

> [...]

> So the attached patch introduces a new static function
> SDL_LoadObject_LibGL() in src/video/x11/SDL_x11gl.c, which does the
> same as SDL_LoadObject, but uses RTLD_GLOBAL. If SDL_LOADSO_DLOPEN
> is not defined (i.e. not the dlopen SDL_LoadObject implementation is
> used, but another one), the patch doesn't touch anything.
> 
> It fixes the bug for me and shouldn't cause any other problems
> AFAICS.

   All these workarounds are interesting, but any idea why
/usr/lib/dri/r300_dri.so can't be linked with libGL instead?

Regards,
-- 
Sam.




More information about the Pkg-sdl-maintainers mailing list