mesa: only expose glImportMemoryFdEXT if the ext is supported
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 21 Aug 2017 20:22:28 +0000 (22:22 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 22 Aug 2017 09:54:29 +0000 (11:54 +0200)
commit44cd9aeeec58ef2c271cc7d5b89ea5eda906e78e
treedafbdc6c9bb65c7e1dbfff85f2d131e7423b5945
parent39a35eb0c1ae0fc572e2c4a89b5e79197aa63bf5
mesa: only expose glImportMemoryFdEXT if the ext is supported

From the EXT_external_objects_fd spec:

   "If the GL_EXT_memory_object_fd string is reported, the following
    commands are added:

    void ImportMemoryFdEXT(uint memory,
                           uint64 size,
                           enum handleType,
                           int fd);"

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