st/mesa: don't call close() on Windows
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
652bc4b537
commit
76a4209dc0
|
@ -51,8 +51,10 @@ st_import_memoryobj_fd(struct gl_context *ctx,
|
||||||
&whandle,
|
&whandle,
|
||||||
obj->Dedicated);
|
obj->Dedicated);
|
||||||
|
|
||||||
|
#if !defined(_WIN32)
|
||||||
/* We own fd, but we no longer need it. So get rid of it */
|
/* We own fd, but we no longer need it. So get rid of it */
|
||||||
close(fd);
|
close(fd);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue