mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
Merge pull request #2023 from raven02/texture
Ignore texture upload if texture width > pitch
This commit is contained in:
commit
662fce38bd
1 changed files with 6 additions and 0 deletions
|
@ -201,6 +201,12 @@ void upload_texture_subresource(gsl::span<gsl::byte> dst_buffer, const rsx_subre
|
|||
u16 w = src_layout.width_in_block;
|
||||
u16 h = src_layout.height_in_block;
|
||||
u16 depth = src_layout.depth;
|
||||
u32 pitch = src_layout.pitch_in_bytes;
|
||||
|
||||
// Ignore when texture width > pitch
|
||||
if (w > pitch)
|
||||
return;
|
||||
|
||||
switch (format)
|
||||
{
|
||||
case CELL_GCM_TEXTURE_B8:
|
||||
|
|
Loading…
Add table
Reference in a new issue