mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-20 09:22:12 +00:00
Avoid scaling 2d textures that could be used as 3d (#3464)
This commit is contained in:
parent
6eb85e846f
commit
5811d121df
1 changed files with 8 additions and 0 deletions
|
@ -174,6 +174,14 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (info.Width == info.Height * info.Height)
|
||||||
|
{
|
||||||
|
// Possibly used for a "3D texture" drawn onto a 2D surface.
|
||||||
|
// Some games do this to generate a tone mapping LUT without rendering into 3D texture slices.
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue