glx: fix non-dri build
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 15 Jan 2018 14:38:25 +0000 (15:38 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 16 Jan 2018 16:27:19 +0000 (16:27 +0000)
commit47ac11bcf8bd9e4525e0fb4308d0bca87a8900c6
treef48b774f8686be7965f1869e1d7b2394f4dcba62
parent338638a8afc9f330bacc1cdd7e6392a3ea9d828a
glx: fix non-dri build

glXGetDriverConfig parameters do not provide a context to dynamically
check for the presence of the function, so the dispatcher directly calls
glXGetDriverConfig, but in non-dri builds dri_glx.c didn't provide
glXGetDriverConfig.

This change make it just return NULL in that case.

Fixes: 84f764a7591 "glxglvnddispatch: Add missing dispatch for GetDriverConfig
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/glx/g_glxglvnddispatchfuncs.c