mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
D3D: Remove redundant cast, move pitch calculation to caller
This commit is contained in:
parent
6be4608a0d
commit
d1b132731d
3 changed files with 5 additions and 5 deletions
|
@ -142,7 +142,8 @@ void TextureCache::TCacheEntry::CopyRectangleFromTexture(
|
|||
void TextureCache::TCacheEntry::Load(unsigned int width, unsigned int height,
|
||||
unsigned int expanded_width, unsigned int level)
|
||||
{
|
||||
D3D::ReplaceRGBATexture2D(texture->GetTex(), TextureCache::temp, width, height, expanded_width, level, usage);
|
||||
unsigned int src_pitch = 4 * expanded_width;
|
||||
D3D::ReplaceRGBATexture2D(texture->GetTex(), TextureCache::temp, width, height, src_pitch, level, usage);
|
||||
}
|
||||
|
||||
TextureCacheBase::TCacheEntryBase* TextureCache::CreateTexture(const TCacheEntryConfig& config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue