mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
rsx: Fix leaking surface cache refs from texture cache
- Lock surfaces in use by texture cache to prevent complete deletion - Remove discarded surfaces from the reprotect cache to avoid uaf
This commit is contained in:
parent
b645a7faf5
commit
d98d152d23
5 changed files with 40 additions and 12 deletions
|
|
@ -81,12 +81,6 @@ namespace gl
|
|||
rsx_log.error("Unexpected swizzled texture format 0x%x", static_cast<u32>(format));
|
||||
}
|
||||
}
|
||||
|
||||
if (context == rsx::texture_upload_context::framebuffer_storage)
|
||||
{
|
||||
// Update memory tag
|
||||
static_cast<gl::render_target*>(vram_texture)->sync_tag();
|
||||
}
|
||||
}
|
||||
|
||||
gl::texture_view* texture_cache::create_temporary_subresource_impl(gl::command_context& cmd, gl::texture* src, GLenum sized_internal_fmt, GLenum dst_type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue