mesa: only expose EXT_memory_object functions if the ext is supported
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 21 Aug 2017 20:22:29 +0000 (22:22 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 22 Aug 2017 09:54:32 +0000 (11:54 +0200)
commit46a8c4ef811ce1b909615f29a4059e079db3b930
tree4d25a59de0a897470b8589f275f13c845da714f3
parent44cd9aeeec58ef2c271cc7d5b89ea5eda906e78e
mesa: only expose EXT_memory_object functions if the ext is supported

They should not be exposed when the extension is unsupported.
Note that ARB_direct_state_access is always exposed and
EXT_semaphore is not supported at all.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/bufferobj.c
src/mesa/main/externalobjects.c
src/mesa/main/get.c