mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-21 08:48:42 +00:00
fix accidentally broken scaling
This commit is contained in:
parent
1198fd6f87
commit
fce4695f06
1 changed files with 4 additions and 1 deletions
|
@ -1777,12 +1777,15 @@ TextureCacheBase::GetXFBTexture(u32 address, u32 width, u32 height, u32 stride,
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
u32 scaled_tex_w = g_renderer->EFBToScaledX(width);
|
||||
u32 scaled_tex_h = g_renderer->EFBToScaledY(height);
|
||||
|
||||
// Compute total texture size. XFB textures aren't tiled, so this is simple.
|
||||
const u32 total_size = height * stride;
|
||||
const u64 hash = Common::GetHash64(src_data, total_size, 0);
|
||||
|
||||
TCacheEntry* entry = nullptr;
|
||||
const TextureConfig config(width, height, 1, g_framebuffer_manager->GetEFBLayers(),
|
||||
const TextureConfig config(scaled_tex_w, scaled_tex_h, 1, g_framebuffer_manager->GetEFBLayers(),
|
||||
1, AbstractTextureFormat::RGBA8, AbstractTextureFlag_RenderTarget);
|
||||
entry = AllocateCacheEntry(config);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue