glx: Do not advertise buffer_age on dri2
authorAdel Gadllah <adel.gadllah@gmail.com>
Sun, 30 Mar 2014 21:36:25 +0000 (23:36 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Apr 2014 20:28:26 +0000 (21:28 +0100)
commitd120506e158e58b7a532c31427fe0a056ea270d8
treee238801f0d61c99c36a3ce3fa4ba01a766b9fbcc
parent2355a6441435b8e66a032c44f0794066338e30a3
glx: Do not advertise buffer_age on dri2

Previously GLX_EXT_buffer_age has always been advertised as supported because
both client_glx_support and client_glx_only where set. So it did not matter
that direct_support is only set when running dri3 and we ended up always
advertising it.

Fix that by not setting client_glx_only for buffer_age in known_glx_extensions.

Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glx/glxextensions.c