mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
rsx: Do not allow framebuffer surfaces that exceed their allocated pitch dimensions
- Truncate surfaces to forcefully fit inside the declared region
This commit is contained in:
parent
537d3f2548
commit
d8f753f1e8
2 changed files with 27 additions and 4 deletions
|
@ -798,7 +798,7 @@ size_t get_texture_size(const rsx::vertex_texture &texture)
|
|||
}
|
||||
|
||||
u32 get_remap_encoding(const std::pair<std::array<u8, 4>, std::array<u8, 4>>& remap)
|
||||
{
|
||||
{
|
||||
u32 encode = 0;
|
||||
encode |= (remap.first[0] << 0);
|
||||
encode |= (remap.first[1] << 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue