glx: use v2 of DRI_ConfigOptions
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 30 Jun 2017 09:04:49 +0000 (11:04 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 2 Aug 2017 07:50:56 +0000 (09:50 +0200)
commitddd5f2a9791bbd938ce79470844110d07e8dea69
treecea4e780f53e6eaf5b19f380245f3c88c1af37a4
parent9435b9c544ec9b8339f31fc89322a9b88af36af5
glx: use v2 of DRI_ConfigOptions

Most of the change is concerned with avoiding memory leaks, since v2 of
the DRI extension returns a malloc'ed string. This also allows us to
resolve the long-standing issue of keeping drivers loaded when returning
from glXGetDriverConfig.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/glx/dri_glx.c