mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-26 02:54:17 +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
|
// 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)
|
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
|
// todo - find a better way to handle this
|
||||||
for (sint32 swap = 0; swap < 2; swap++)
|
for (sint32 swap = 0; swap < 2; swap++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user