htrdr

Solving radiative transfer in heterogeneous media
git clone git://git.meso-star.fr/htrdr.git
Log | Files | Refs | README | LICENSE

commit 9805c7c9e9308f16016a49dc853b4fdadfe00889
parent 3b3034f2a8463c30e0ee5ae94dc2eaefa53fda81
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 24 Jul 2018 12:26:21 +0200

Fix a htrdr_draw_radiance precondition

Diffstat:
Msrc/htrdr_draw_radiance_sw.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/htrdr_draw_radiance_sw.c b/src/htrdr_draw_radiance_sw.c @@ -116,7 +116,7 @@ htrdr_draw_radiance_sw const size_t spp, struct htrdr_buffer* buf) { - struct ssp_rng* rng; + struct ssp_rng* rng = NULL; size_t ntiles_x, ntiles_y, ntiles; int32_t mcode; /* Morton code of the tile */ struct htrdr_buffer_layout layout; @@ -128,7 +128,7 @@ htrdr_draw_radiance_sw ASSERT(layout.width || layout.height || layout.elmt_size); if(layout.elmt_size != sizeof(struct htrdr_accum) - || layout.alignment != ALIGNOF(struct htrdr_accum)) { + || layout.alignment < ALIGNOF(struct htrdr_accum)) { htrdr_log_err(htrdr, "%s: invalid buffer layout. " "The pixel size must be the size of an accumulator.\n",