mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-22 23:55:47 +00:00
Use return value of BeginRenderPass
This commit is contained in:
parent
684e025d61
commit
f2490347af
1 changed files with 7 additions and 3 deletions
|
@ -48,12 +48,16 @@ namespace Ryujinx.Graphics.Metal
|
|||
|
||||
public MTLRenderCommandEncoder GetOrCreateRenderEncoder()
|
||||
{
|
||||
MTLRenderCommandEncoder renderCommandEncoder;
|
||||
|
||||
if (_currentEncoder == null || _currentEncoderType != EncoderType.Render)
|
||||
{
|
||||
BeginRenderPass();
|
||||
renderCommandEncoder = BeginRenderPass();
|
||||
}
|
||||
else
|
||||
{
|
||||
renderCommandEncoder = new MTLRenderCommandEncoder(_currentEncoder.Value);
|
||||
}
|
||||
|
||||
var renderCommandEncoder = new MTLRenderCommandEncoder(_currentEncoder.Value);
|
||||
|
||||
_encoderStateManager.RebindState(renderCommandEncoder);
|
||||
|
||||
|
|
Loading…
Reference in a new issue