Skip to content
Permalink
Browse files

Merge pull request #7643 from weihuoya/texture-overlap

Texture: fx overlap src position
  • Loading branch information...
stenzek committed Jan 15, 2019
2 parents 1d3e3de + 184b2ed commit 59623160686bb038bcd61d11d3b2263f09822c7e
Showing with 3 additions and 2 deletions.
  1. +3 −2 Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -1378,9 +1378,10 @@ bool TextureCacheBase::LoadTextureFromOverlappingTextures(TCacheEntry* entry_to_
}
else
{
s32 srcNumBlocksX = entry->native_width / tex_info.block_width;
s32 block_offset = (entry_to_update->addr - entry->addr) / tex_info.bytes_per_block;
s32 block_x = block_offset % numBlocksX;
s32 block_y = block_offset / numBlocksX;
s32 block_x = block_offset % srcNumBlocksX;
s32 block_y = block_offset / srcNumBlocksX;
src_x = block_x * tex_info.block_width;
src_y = block_y * tex_info.block_height;
dst_x = 0;

0 comments on commit 5962316

Please sign in to comment.
You can’t perform that action at this time.