gallium/util: don't call close() on Windows in u_tests.c

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Brian Paul
2017-10-17 13:59:28 -06:00
parent 5134c0dedf
commit 069211f205
+2
View File
@@ -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);