diff options
author | Brian Paul <[email protected]> | 2017-09-08 16:40:52 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-09-28 10:41:33 -0600 |
commit | 76a4209dc0418890bc7a01196c582f90d4c5c021 (patch) | |
tree | 21bd4769f0be7fd764f4ea46a0aeabf455bb6b00 /src/mesa/state_tracker | |
parent | 652bc4b537bcce16bf65b10db06b20515e5b9b91 (diff) |
st/mesa: don't call close() on Windows
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-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 |