mirror of https://github.com/xemu-project/xemu.git
nv2a: Ignore pitch check for swizzled textures
This commit is contained in:
parent
1e221e8da9
commit
248fc788c1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue