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
|
@ -16,7 +16,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
|
||||
MTLSamplerBorderColor borderColor = GetConstrainedBorderColor(info.BorderColor, out _);
|
||||
|
||||
var samplerState = device.NewSamplerState(new MTLSamplerDescriptor
|
||||
using var descriptor = new MTLSamplerDescriptor
|
||||
{
|
||||
BorderColor = borderColor,
|
||||
MinFilter = minFilter,
|
||||
|
@ -31,7 +31,9 @@ namespace Ryujinx.Graphics.Metal
|
|||
TAddressMode = info.AddressV.Convert(),
|
||||
RAddressMode = info.AddressP.Convert(),
|
||||
SupportArgumentBuffers = true
|
||||
});
|
||||
};
|
||||
|
||||
var samplerState = device.NewSamplerState(descriptor);
|
||||
|
||||
_mtlSamplerState = samplerState;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue