egl_dri: rework dri extension handling
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Feb 2014 20:13:15 +0000 (20:13 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 28 Apr 2014 18:13:38 +0000 (19:13 +0100)
commit5f280d0c4416627810de73a6c68c422453d2b7d9
tree219b4f3015f9d9034e4a513e96760dd617e7c84f
parent5457caa58c048e2df71c7ebc036d5ca010d576b6
egl_dri: rework dri extension handling

Use designated initialisers, and store the extensions pointers as const.

The loader extensions __DRIdri2LoaderExtension and __DRIswrastLoaderExtension
are setup by the platform backends so they should not be constified.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h