projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
652bc4b
)
st/mesa: don't call close() on Windows
author
Brian Paul
<brianp@vmware.com>
Fri, 8 Sep 2017 22:40:52 +0000
(16:40 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 28 Sep 2017 16:41:33 +0000
(10:41 -0600)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_memoryobjects.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_memoryobjects.c
b/src/mesa/state_tracker/st_cb_memoryobjects.c
index
a5764c3
..
7a43763
100644
(file)
--- 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