diff --git a/src/mesa/main/externalobjects.c b/src/mesa/main/externalobjects.c index 750b333cfd4..d406baad1c4 100644 --- a/src/mesa/main/externalobjects.c +++ b/src/mesa/main/externalobjects.c @@ -1052,7 +1052,7 @@ _mesa_ImportMemoryFdEXT(GLuint memory, const char *func = "glImportMemoryFdEXT"; - if (!ctx->Extensions.EXT_memory_object_fd) { + if (!_mesa_has_EXT_memory_object_fd(ctx)) { _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func); return; }