diff options
-rw-r--r-- | src/mesa/state_tracker/st_cb_memoryobjects.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |