diff --git a/panda/src/display/graphicsStateGuardian.cxx b/panda/src/display/graphicsStateGuardian.cxx index b2683dcdbe..11bffeb4a4 100644 --- a/panda/src/display/graphicsStateGuardian.cxx +++ b/panda/src/display/graphicsStateGuardian.cxx @@ -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();