mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 09:09:18 +01:00
Latte: Always allow views with the same format as base texture
Fixes crash/assert in VC N64 titles
This commit is contained in:
parent
d33337d539
commit
5f825a1fa8
@ -235,6 +235,9 @@ void LatteTexture_InitSliceAndMipInfo(LatteTexture* texture)
|
||||
// if this function returns false, textures will not be synchronized even if their data overlaps
|
||||
bool LatteTexture_IsFormatViewCompatible(Latte::E_GX2SURFFMT formatA, Latte::E_GX2SURFFMT formatB)
|
||||
{
|
||||
if(formatA == formatB)
|
||||
return true; // if the format is identical then compatibility must be guaranteed (otherwise we can't create the necessary default view of a texture)
|
||||
|
||||
// todo - find a better way to handle this
|
||||
for (sint32 swap = 0; swap < 2; swap++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user