From 76a4209dc0418890bc7a01196c582f90d4c5c021 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 8 Sep 2017 16:40:52 -0600 Subject: [PATCH] st/mesa: don't call close() on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/mesa/state_tracker/st_cb_memoryobjects.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/state_tracker/st_cb_memoryobjects.c b/src/mesa/state_tracker/st_cb_memoryobjects.c index a5764c352ed..7a437632640 100644 --- a/src/mesa/state_tracker/st_cb_memoryobjects.c +++ b/src/mesa/state_tracker/st_cb_memoryobjects.c @@ -51,8 +51,10 @@ st_import_memoryobj_fd(struct gl_context *ctx, &whandle, obj->Dedicated); +#if !defined(_WIN32) /* We own fd, but we no longer need it. So get rid of it */ close(fd); +#endif } void -- 2.30.2