Skip to content

Commit

Permalink
Null the render encoder when done
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouwe committed Jan 10, 2025
1 parent 099d4e8 commit 6b70728
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TestFramework/Renderer/MTL/RendererMTL.mm
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@

// Finish the encoder
[mRenderEncoder endEncoding];
mRenderEncoder = nil;

// Schedule a present
[mCommandBuffer presentDrawable: mView.currentDrawable];
Expand Down

0 comments on commit 6b70728

Please sign in to comment.