display: Fix double-precision build

Fixes #1688
This commit is contained in:
rdb
2024-10-14 12:05:57 +02:00
parent ca25efc5f6
commit 777ab6746c
+1 -1
View File
@@ -2201,7 +2201,7 @@ fetch_specified_light(const NodePath &np, LVecBase4f *into) {
if (!node->is_of_type(PointLight::get_class_type())) {
t *= lens->get_projection_mat() * shadow_bias_mat;
}
*(LMatrix4f *)&into[Shader::LA_shadow_view_matrix] = t;
*(LMatrix4f *)&into[Shader::LA_shadow_view_matrix] = LCAST(float, t);
}
LVecBase3 atten = light->get_attenuation();