mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
display: fix returning reference to temporary in shader input
This might cause issues when the transform cache is off.
This commit is contained in:
parent
8119547e90
commit
9382e09b7c
@ -1255,7 +1255,8 @@ fetch_specified_part(Shader::ShaderMatInput part, InternalName *name,
|
||||
return &(_scene_setup->get_camera_transform()->get_mat());
|
||||
}
|
||||
case Shader::SMO_model_to_view: {
|
||||
return &(_inv_cs_transform->compose(_internal_transform)->get_mat());
|
||||
t = _inv_cs_transform->compose(_internal_transform)->get_mat();
|
||||
return &t;
|
||||
}
|
||||
case Shader::SMO_model_to_apiview: {
|
||||
return &(_internal_transform->get_mat());
|
||||
|
Loading…
x
Reference in New Issue
Block a user