commit 4b65fff58c05213ba751fb38cdba6eecff732e55 parent 1796972f64b43606db01fae3c8b61195d5891d5c Author: Vincent Forest <vincent.forest@meso-star.com> Date: Wed, 26 Sep 2018 18:54:55 +0200 Load the ground before the setup of the sky Diffstat:
| M | src/htrdr.c | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/htrdr.c b/src/htrdr.c @@ -253,6 +253,9 @@ htrdr_init goto error; } + res = setup_geometry(htrdr, args->filename_obj); + if(res != RES_OK) goto error; + proj_ratio = (double)args->image.definition[0] / (double)args->image.definition[1]; @@ -297,10 +300,7 @@ htrdr_init } } - res = setup_geometry(htrdr, args->filename_obj); - if(res != RES_OK) goto error; - -exit: + exit: return res; error: htrdr_release(htrdr);