mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
nv2a: Ignore pitch check for swizzled textures
This commit is contained in:
@@ -5354,7 +5354,7 @@ static bool pgraph_check_surface_to_texture_compatibility(
|
||||
{
|
||||
// FIXME: Better checks/handling on formats and surface-texture compat
|
||||
|
||||
if (surface->pitch != shape->pitch ||
|
||||
if ((!surface->swizzle && surface->pitch != shape->pitch) ||
|
||||
surface->width != shape->width ||
|
||||
surface->height != shape->height) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user