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

Marek Olšák maraeo at gmail.com
Fri Sep 8 23:56:59 UTC 2017


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sat, Sep 9, 2017 at 12:54 AM, Brian Paul <brianp at vmware.com> wrote:
> ---
>  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
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list