mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-02 14:32:07 +01: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