diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 00:25:57 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 00:25:57 +0100 |
commit | 24c048797025d31a23413c69a2e9ed5009e79eaf (patch) | |
tree | 6edfa5f053ba16e62cd65c671bb7e84fd9ab04f9 /src/ft_exit.c | |
parent | Ok nice (diff) | |
download | 42-cub3d-24c048797025d31a23413c69a2e9ed5009e79eaf.tar.gz 42-cub3d-24c048797025d31a23413c69a2e9ed5009e79eaf.tar.bz2 42-cub3d-24c048797025d31a23413c69a2e9ed5009e79eaf.tar.xz 42-cub3d-24c048797025d31a23413c69a2e9ed5009e79eaf.tar.zst 42-cub3d-24c048797025d31a23413c69a2e9ed5009e79eaf.zip |
Better linux compat
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index 4ed318c..3ec26ad 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -73,7 +73,8 @@ int ft_del_tex(clist); if (clist->wlist.inited) { - mlx_destroy_image(clist->wlist.wlx, clist->img.img); + if (FT_OS == 1) + mlx_destroy_image(clist->wlist.wlx, clist->img.img); mlx_destroy_window(clist->wlist.wlx, clist->wlist.winptr); clist->wlist.winptr = NULL; } |