diff --git a/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.m b/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.m index 82f583e42..d1f35676e 100755 --- a/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.m +++ b/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.m @@ -260,7 +260,9 @@ -(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMS CIImage *outputImage = [sepiaCoreImageFilter outputImage]; - [coreImageContext drawImage:outputImage atPoint:CGPointMake(0.0, 0.0) fromRect:[inputImage extent]]; + CGFloat scale = UIScreen.mainScreen.scale; + CGRect s = CGRectMake(0, 0, [[UIScreen mainScreen] bounds].size.width * scale, [[UIScreen mainScreen] bounds].size.height * scale); + [coreImageContext drawImage:outputImage inRect:s fromRect:[inputImage extent]]; [self.openGLESContext presentRenderbuffer:GL_RENDERBUFFER]; elapsedTime = CFAbsoluteTimeGetCurrent() - startTime;