Fixed crash on AMD related to snow effect

This commit is contained in:
korenkonder
2024-11-30 16:47:05 +03:00
parent 062da49b1f
commit 776ccf84a8
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -1277,8 +1277,11 @@ HOOK(void, FASTCALL, snow_particle_init, 0x000000014035DD30, bool change_stage)
j.direction = 0.0f;
}
if (change_stage)
if (change_stage) {
snow_ssbo.Destroy();
snow_ssbo.Create(sizeof(snow_particle_vertex_data) * snow->num_snow);
return;
}
snow_particle_free();