mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
TextureCacheBase: Small change
This commit is contained in:
parent
f68ee87e0e
commit
0c1e015ec3
@ -367,7 +367,7 @@ TextureCache::TCacheEntryBase* TextureCache::Load(unsigned int stage,
|
|||||||
expandedHeight = (currentHeight + bsh) & (~bsh);
|
expandedHeight = (currentHeight + bsh) & (~bsh);
|
||||||
|
|
||||||
TexDecoder_Decode(temp, ptr, expandedWidth, expandedHeight, texformat, tlutaddr, tlutfmt, g_ActiveConfig.backend_info.bUseRGBATextures);
|
TexDecoder_Decode(temp, ptr, expandedWidth, expandedHeight, texformat, tlutaddr, tlutfmt, g_ActiveConfig.backend_info.bUseRGBATextures);
|
||||||
entry->Load(currentWidth, currentHeight, expandedWidth, level);
|
entry->Load(currentWidth, currentHeight, expandedWidth, level, false);
|
||||||
|
|
||||||
ptr += ((std::max(mipWidth, bsw) * std::max(mipHeight, bsh) * bsdepth) >> 1);
|
ptr += ((std::max(mipWidth, bsw) * std::max(mipHeight, bsh) * bsdepth) >> 1);
|
||||||
mipWidth >>= 1;
|
mipWidth >>= 1;
|
||||||
|
@ -77,7 +77,7 @@ public:
|
|||||||
virtual bool Save(const char filename[]) = 0;
|
virtual bool Save(const char filename[]) = 0;
|
||||||
|
|
||||||
virtual void Load(unsigned int width, unsigned int height,
|
virtual void Load(unsigned int width, unsigned int height,
|
||||||
unsigned int expanded_width, unsigned int level, bool autogen_mips = false) = 0;
|
unsigned int expanded_width, unsigned int level, bool autogen_mips) = 0;
|
||||||
virtual void FromRenderTarget(u32 dstAddr, unsigned int dstFormat,
|
virtual void FromRenderTarget(u32 dstAddr, unsigned int dstFormat,
|
||||||
unsigned int srcFormat, const EFBRectangle& srcRect,
|
unsigned int srcFormat, const EFBRectangle& srcRect,
|
||||||
bool isIntensity, bool scaleByHalf, unsigned int cbufid,
|
bool isIntensity, bool scaleByHalf, unsigned int cbufid,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user