mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-21 21:05:56 +00:00
Skip the HDR record lock on image deletion while HDR is off
vk_hdr_image_gone took rec_lock for every texture image the game destroys, also with TOTK_HDR=0, where no record exists; the records start at the first HDR present, which sets vk_hdr_track. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f30bbf048a
commit
dbed5771b9
1 file changed
+1
@@ -222,6 +222,7 @@ void vk_hdr_present_source(const VkTexImage *win, VkImage *image, VkFormat *form
|
||||
}
|
||||
|
||||
void vk_hdr_image_gone(VkImage image) { // a texture image went away: forget it as window or source
|
||||
if (!vk_hdr_track) return; // no records before the first HDR present (vk_hdr_present_source): no lock per image
|
||||
plat_mutex_lock(&rec_lock);
|
||||
for (int i = 0; i < nrecs; i++) {
|
||||
if (recs[i].src == image) recs[i].src = VK_NULL_HANDLE;
|
||||
|
||||
Reference in new issue
Block a user