VITA/NX: Prevent muzzleflash from clipping with world

This commit is contained in:
Ian 2023-09-09 13:44:56 -04:00
parent 3ea40400e9
commit 2ecd4c5e04
1 changed files with 5 additions and 0 deletions

View File

@ -2132,9 +2132,14 @@ void QMB_DrawParticles (void)
continue;
}
}
if (pt->texture == ptex_muzzleflash || pt->texture == ptex_muzzleflash2 || pt->texture == ptex_muzzleflash3)
glDepthRange (0, 0.3);
DRAW_PARTICLE_BILLBOARD(ptex, p, billboard);
if (pt->texture == ptex_muzzleflash || pt->texture == ptex_muzzleflash2 || pt->texture == ptex_muzzleflash3)
glDepthRange (0, 1);
}
break;