Skip to content

Commit

Permalink
Merge pull request #183 from akanchi/master
Browse files Browse the repository at this point in the history
fix(iOS): MTLRenderCommandEncoder释放前需要调用-[MTLRenderCommandEncoder end…
  • Loading branch information
wubiner authored Dec 8, 2021
2 parents 873554f + c456d1a commit 4cb7191
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 4cb7191

Please sign in to comment.