mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-20 01:50:53 -05:00
Patch some leaks and only perform copies on valid textures (#37)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user