Patch some leaks and only perform copies on valid textures (#37)
This commit is contained in:
parent
01f41b8b0e
commit
fff3a4f8f8
6 changed files with 29 additions and 13 deletions
|
@ -151,6 +151,11 @@ namespace Ryujinx.Graphics.Metal
|
|||
TextureBase src = this;
|
||||
TextureBase dst = (TextureBase)destination;
|
||||
|
||||
if (!Valid || !dst.Valid)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var srcImage = GetHandle();
|
||||
var dstImage = dst.GetHandle();
|
||||
|
||||
|
@ -203,6 +208,11 @@ namespace Ryujinx.Graphics.Metal
|
|||
TextureBase src = this;
|
||||
TextureBase dst = (TextureBase)destination;
|
||||
|
||||
if (!Valid || !dst.Valid)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var srcImage = GetHandle();
|
||||
var dstImage = dst.GetHandle();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue