diff options
Diffstat (limited to 'src/ft_draw_scene.c')
-rw-r--r-- | src/ft_draw_scene.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c index 4d15df2..9664363 100644 --- a/src/ft_draw_scene.c +++ b/src/ft_draw_scene.c @@ -41,10 +41,10 @@ static int8_t void ft_draw_scene(t_cub *clist) { - clist->img.img = mlx_new_image(clist->wlist.wlx, - clist->wlist.x_size, clist->wlist.y_size); - clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp, - &clist->img.sizeline, &clist->img.endian); + /* clist->img.img = mlx_new_image(clist->wlist.wlx, */ + /* clist->wlist.x_size, clist->wlist.y_size); */ + /* clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp, */ + /* &clist->img.sizeline, &clist->img.endian); */ ft_castray(clist); if (clist->ishud) { @@ -53,7 +53,7 @@ void if (clist->mlist.isskybox) ft_draw_skybox(clist); mlx_put_image_to_window(clist->wlist.wlx, - clist->wlist.winptr, clist->img.img, 0, 0); + clist->wlist.winptr, clist->img.img, 0, 0); if (clist->ishud && clist->mlist.isnlvl) { if (ft_put_stage(clist) < 0) @@ -61,7 +61,7 @@ void ft_error(FT_RET_ALLOC_ERR, FT_ERR_ALLOCATE, clist); } } - mlx_destroy_image(clist->wlist.wlx, clist->img.img); + /* mlx_destroy_image(clist->wlist.wlx, clist->img.img); */ } void |