diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-05 00:40:00 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-05 00:40:00 +0100 |
commit | fa5ea4029d310619026465d26118210d752c184f (patch) | |
tree | a787754ac02c8301a90def9ca4ffcd00c28a0e21 | |
parent | okokokokok (diff) | |
download | 42-cub3d-fa5ea4029d310619026465d26118210d752c184f.tar.gz 42-cub3d-fa5ea4029d310619026465d26118210d752c184f.tar.bz2 42-cub3d-fa5ea4029d310619026465d26118210d752c184f.tar.xz 42-cub3d-fa5ea4029d310619026465d26118210d752c184f.tar.zst 42-cub3d-fa5ea4029d310619026465d26118210d752c184f.zip |
Pretty cool
-rw-r--r-- | src/ft_draw_scene.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c index 79124f4..9461eef 100644 --- a/src/ft_draw_scene.c +++ b/src/ft_draw_scene.c @@ -25,8 +25,6 @@ void ft_castray(clist); if (clist->ishud) ft_draw_hud(clist); - if (ft_save_to_bmp(clist) < 0) - ft_error(FT_RET_BMP_ERR, FT_ERR_WR_BMP, clist); mlx_put_image_to_window(clist->wlist.wlx, clist->wlist.winptr, clist->img.img, 0, 0); mlx_destroy_image(clist->wlist.wlx, clist->img.img); @@ -40,5 +38,7 @@ void clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp, &clist->img.sizeline, &clist->img.endian); ft_castray(clist); + if (ft_save_to_bmp(clist) < 0) + ft_error(FT_RET_BMP_ERR, FT_ERR_WR_BMP, clist); mlx_destroy_image(clist->wlist.wlx, clist->img.img); } |