We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59ef4f2 commit b97015bCopy full SHA for b97015b
1 file changed
ijkmedia/ijksdl/metal/FSMetalView.m
@@ -560,7 +560,11 @@ - (CGImageRef)_snapshotWithSubtitle:(BOOL)drawSub
560
CGImageRef result = [self.offscreenRendering snapshot:viewport device:self.device commandBuffer:commandBuffer doUploadPicture:^(id<MTLRenderCommandEncoder> _Nonnull renderEncoder) {
561
562
if (!attach.videoTextures) {
563
- attach.videoTextures = [[self class] doGenerateTexture:attach.videoPicture textureCache:self.pictureTextureCache device:self.device];
+ CVMetalTextureCacheRef textureCache = NULL;
564
+ #if TARGET_CPU_ARM64
565
+ textureCache = self.pictureTextureCache;
566
+ #endif
567
+ attach.videoTextures = [[self class] doGenerateTexture:attach.videoPicture textureCache:textureCache device:self.device];
568
}
569
570
[self encodePicture:attach
0 commit comments