mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-04 21:39:54 +00:00
texture: ignore when texture width > pitch
This commit is contained in:
parent
47a9c8d731
commit
4dd67cdd54
@ -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…
x
Reference in New Issue
Block a user