diff --git a/TestFramework/Renderer/MTL/RendererMTL.mm b/TestFramework/Renderer/MTL/RendererMTL.mm index 00fcad01b..fbf6bc0cf 100644 --- a/TestFramework/Renderer/MTL/RendererMTL.mm +++ b/TestFramework/Renderer/MTL/RendererMTL.mm @@ -112,6 +112,7 @@ // Finish the encoder [mRenderEncoder endEncoding]; + mRenderEncoder = nil; // Schedule a present [mCommandBuffer presentDrawable: mView.currentDrawable];