head 1.1; access; symbols; locks; strict; comment @// @; 1.1 date 2026.11.08.16.15.19; author ryoon; state Exp; branches; next ; commitid ZLJvun5VhZ31WF2H; desc @@ 1.1 log @graphics/blender52-lts: import blender-5.2.3 Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline - modeling, rigging, animation, simulation, rendering, compositing and motion tracking, video editing and 2D animation pipeline. This package tracks 5.2 LTS release branch. @ text @$NetBSD$ --- source/blender/draw/engines/eevee/eevee_shadow.cc.orig 2026-09-13 20:27:13.507532242 +0000 +++ source/blender/draw/engines/eevee/eevee_shadow.cc @@@@ -414,7 +414,7 @@@@ IndexRange ShadowDirectional::clipmap_level_range(cons using namespace blender::math; /* Covers the closest points of the view. */ /* FIXME: IndexRange does not support negative indices. Clamp to 0 for now. */ - int min_level = max(0.0f, floor(log2(abs(cam.data_get().clip_near)))); + int min_level = std::max(0.0f, std::floor(std::log2(std::abs(cam.data_get().clip_near)))); /* Covers the farthest points of the view. */ int max_level = ceil(log2(cam.bound_radius() + distance(cam.bound_center(), cam.position()))); /* We actually need to cover a bit more because of clipmap origin snapping. */ @