Skip to content

Commit

Permalink
fix(iOS): MTLRenderCommandEncoder释放前需要调用-[MTLRenderCommandEncoder end…
Browse files Browse the repository at this point in the history
…Encoding], 避免触发断言‘Command encoder released without endEncoding’
  • Loading branch information
akanchi committed Dec 8, 2021
1 parent 873554f commit c456d1a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ - (void)renderPixelBuffer:(CVPixelBufferRef)pixelBuffer metalLayer:(CAMetalLayer
}
if (self.vertexBuffer == nil || self.yuvMatrixBuffer == nil) {
VAP_Error(kQGVAPModuleCommon, @"quit rendering cuz vertexBuffer:%p or yuvMatrixBuffer:%p is nil!", self.vertexBuffer, self.yuvMatrixBuffer);
[renderEncoder endEncoding];
return ;
}

Expand Down

0 comments on commit c456d1a

Please sign in to comment.