• Vasily Khoruzhick's avatar
    glx: fixup symbol name for get_extensions function · b56e5010
    Vasily Khoruzhick authored
    
    
    glxProbeDriver() concatenates __DRI_DRIVER_GET_EXTENSIONS with driver name
    to get symbol name for get_extension function. Unfortunately that doesn't
    work for drivers that have hyphen in their name, e.g. sun4i-drm --
    get_extensions() for these uses underscore instead.
    
    As result dlsym() doesn't find get_extension() function and AIGLX
    initialization fails resulting in following message in Xorg.0.log:
    
    (EE) AIGLX error: sun4i-drm does not export required DRI extension
    
    Replace all non-alpha-numeric characters with underscore to fix the issue.
    Signed-off-by: Vasily Khoruzhick's avatarVasily Khoruzhick <anarsoul@gmail.com>
    b56e5010
glxdricommon.c 12.9 KB