diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-04-28 16:57:58 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-04-28 16:57:58 -0700 |
commit | 34811cbe4bf6da3e6e22860890fca4c9fff71252 (patch) | |
tree | 9d92e846233808785b4add3a7480bc4a2cf4d5a5 /src/libs | |
parent | 69b94a6eabdb5340e3ea0d2211fd588fce7fd761 (diff) |
libs/din: lose the asserts in dotgradient()
This just slows things down, and now that the code is mature
enough to never trigger these asserts just get rid of them.
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/din/din.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libs/din/din.c b/src/libs/din/din.c index 22e2848..c0bac93 100644 --- a/src/libs/din/din.c +++ b/src/libs/din/din.c @@ -76,10 +76,6 @@ static inline float dotgradient(const din_t *din, int x, int y, int z, const v3f { v3f_t distance = v3f_sub(coordinate, &(v3f_t){.x = x, .y = y, .z = z}); - assert(x < din->width); - assert(y < din->height); - assert(z < din->depth); - return v3f_dot(&din->grid[z * din->W_x_H + y * din->width + x], &distance); } |