From 4f697f73a5ac567c1dc22ce44a7fab98f619dfe3 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 22 Feb 2019 21:19:04 -0300 Subject: Change MAX for MIN, fixes #26170 --- scene/3d/voxel_light_baker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/voxel_light_baker.cpp b/scene/3d/voxel_light_baker.cpp index 42c2318701..9250ca7937 100644 --- a/scene/3d/voxel_light_baker.cpp +++ b/scene/3d/voxel_light_baker.cpp @@ -2208,7 +2208,7 @@ PoolVector VoxelLightBaker::create_gi_probe_data() { } { - uint16_t alpha = MAX(uint32_t(bake_cells[i].alpha * 65535.0), 65535); + uint16_t alpha = MIN(uint32_t(bake_cells[i].alpha * 65535.0), 65535); uint16_t level = bake_cells[i].level; w32[ofs++] = (uint32_t(level) << 16) | uint32_t(alpha); -- cgit v1.2.3