diff options
-rw-r--r-- | src/mesa/main/externalobjects.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/externalobjects.c b/src/mesa/main/externalobjects.c index 098a0999208..127b2039c64 100644 --- a/src/mesa/main/externalobjects.c +++ b/src/mesa/main/externalobjects.c @@ -560,6 +560,12 @@ _mesa_ImportMemoryFdEXT(GLuint memory, { GET_CURRENT_CONTEXT(ctx); + if (!ctx->Extensions.EXT_memory_object_fd) { + _mesa_error(ctx, GL_INVALID_OPERATION, + "glImportMemoryFdEXT(unsupported)"); + return; + } + if (handleType != GL_HANDLE_TYPE_OPAQUE_FD_EXT) { _mesa_error(ctx, GL_INVALID_VALUE, "glImportMemoryFdEXT(handleType=%u)", handleType); |