Merge pull request #95682 from zeux/fsr2-fix-free

Fix double free in FSR2 destructor
This commit is contained in:
Rémi Verschelde 2024-08-19 12:09:20 +02:00
commit 9cc53a134e
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -800,9 +800,6 @@ FSR2Effect::~FSR2Effect() {
RD::get_singleton()->free(device.linear_clamp_sampler);
for (uint32_t i = 0; i < FFX_FSR2_PASS_COUNT; i++) {
if (device.passes[i].pipeline.pipeline_rid.is_valid()) {
RD::get_singleton()->free(device.passes[i].pipeline.pipeline_rid);
}
device.passes[i].shader->version_free(device.passes[i].shader_version);
}
}