mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix buffer overrun in CPUParticles3D
This commit is contained in:
parent
5f2137a050
commit
89980dd9c9
1 changed files with 1 additions and 1 deletions
|
@ -1207,7 +1207,7 @@ void CPUParticles3D::_update_particle_data_buffer() {
|
||||||
ptr[10] = t.basis.rows[2][2];
|
ptr[10] = t.basis.rows[2][2];
|
||||||
ptr[11] = t.origin.z;
|
ptr[11] = t.origin.z;
|
||||||
} else {
|
} else {
|
||||||
memset(ptr, 0, sizeof(Transform3D));
|
memset(ptr, 0, sizeof(float) * 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
Color c = r[idx].color;
|
Color c = r[idx].color;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue