metal: minimalize texture hardcoding

Cette révision appartient à :
Samuliak 2024-04-10 17:41:45 +02:00
Parent 98c4ff461f
révision e3ab4c6349
Signature inconnue de Forgejo
1 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -87,8 +87,8 @@ void GraphicsPipeline::Configure(bool is_indexed) {
}
}
auto a = gpu_memory->Read<u32>(addr);
// HACK: hardcode the image
if (a != 310378932)
// HACK: this particular texture breaks SMO
if (a == 310378931)
a = 310378932;
return TexturePair(a, false);