commit c12b8cff4e1e006540819d3b7b216eb3a4d25f38
parent 28b6606bbbf847477c9ae304938dfce33dbb8bd5
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 24 Jan 2023 14:06:43 +0100
atmosphere: fix a compile warning detected by GCC 12
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/atmosphere/htrdr_atmosphere_draw_map.c b/src/atmosphere/htrdr_atmosphere_draw_map.c
@@ -79,7 +79,7 @@ sample_rectangle_ray
if(!S3D_HIT_NONE(&hit)) {
struct htrdr_interface interf = HTRDR_INTERFACE_NULL;
const struct htrdr_mtl* mtl = NULL;
- float N[3]; /* Normalized normal of the hit */
+ float N[3] = {0,0,0}; /* Normalized normal of the hit */
float wi[3];
float cos_wi_N;