[Mesa-dev] [PATCH] st/mesa: don't call close() on Windows

Brian Paul brianp at vmware.com
Fri Sep 8 22:54:56 UTC 2017


---
 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 a5764c3..7a43763 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
-- 
1.9.1



More information about the mesa-dev mailing list