diff options
author | Brian Paul <[email protected]> | 2017-10-17 13:59:28 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-10-23 15:10:44 -0600 |
commit | 069211f205e0f62b3cdae94608b63b253f37799e (patch) | |
tree | 6bc69030a13dec8557ada0fae27265f1c78bcb40 /src/gallium/auxiliary/util | |
parent | 5134c0dedf455a8a8311c2c43db49ac07b3fe0ce (diff) |
gallium/util: don't call close() on Windows in u_tests.c
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_tests.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_tests.c b/src/gallium/auxiliary/util/u_tests.c index 3cc79afcffd..2548b464b34 100644 --- a/src/gallium/auxiliary/util/u_tests.c +++ b/src/gallium/auxiliary/util/u_tests.c @@ -567,6 +567,7 @@ test_sync_file_fences(struct pipe_context *ctx) pass = pass && screen->fence_finish(screen, NULL, final_fence, 0); /* Cleanup. */ +#ifndef PIPE_OS_WINDOWS if (buf_fd >= 0) close(buf_fd); if (tex_fd >= 0) @@ -575,6 +576,7 @@ test_sync_file_fences(struct pipe_context *ctx) close(merged_fd); if (final_fd >= 0) close(final_fd); +#endif screen->fence_reference(screen, &buf_fence, NULL); screen->fence_reference(screen, &tex_fence, NULL); |