egl/dri2: call static functions directly, not via _EGLDriver::API
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 18 Aug 2016 15:33:39 +0000 (16:33 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 11:16:08 +0000 (12:16 +0100)
commit8cf83f9c08a929547062a8ba105a3a75531d72a4
tree29ccbb9c730b60f026b26e36a169d7eb90146d02
parent532ec2edd878e5691998a1b2132a68a89845b55e
egl/dri2: call static functions directly, not via _EGLDriver::API

The indirection is meant to be used by the core EGL implementation in
main. Not in the drivers themselves.

Move the dri2_destroy_surface definition to avoid forward declaration of
the static function.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/drivers/dri2/egl_dri2.c