Merge pull request #2023 from raven02/texture

Ignore texture upload if texture width > pitch
This commit is contained in:
vlj 2016-08-04 17:39:27 +02:00 committed by GitHub
commit 662fce38bd

View File

@ -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: