mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-11 23:12:02 +00:00
Do not align sizes for buffer texture targets. (#1671)
This should fix a random crash in Hyrule Warriors, and potentially other games that use buffer textures.
This commit is contained in:
parent
24dbfc0fe6
commit
a16f201a6f
1 changed files with 3 additions and 1 deletions
|
@ -274,7 +274,9 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
return false;
|
||||
}
|
||||
|
||||
if (alignSizes)
|
||||
bool isTextureBuffer = lhs.Target == Target.TextureBuffer || rhs.Target == Target.TextureBuffer;
|
||||
|
||||
if (alignSizes && !isTextureBuffer)
|
||||
{
|
||||
Size size0 = GetAlignedSize(lhs);
|
||||
Size size1 = GetAlignedSize(rhs);
|
||||
|
|
Loading…
Reference in a new issue