Merge pull request #565 from qinyuhang/fix_QR_GPU
Fix show QR require GPU
This commit is contained in:
@ -72,9 +72,9 @@
|
|||||||
CGContextRef bitmapRef = CGBitmapContextCreate(nil, width, height, 8, 0, cs, (CGBitmapInfo)kCGImageAlphaNone);
|
CGContextRef bitmapRef = CGBitmapContextCreate(nil, width, height, 8, 0, cs, (CGBitmapInfo)kCGImageAlphaNone);
|
||||||
|
|
||||||
#if TARGET_OS_IPHONE
|
#if TARGET_OS_IPHONE
|
||||||
CIContext *context = [CIContext contextWithOptions:nil];
|
CIContext *context = [CIContext contextWithOptions: @{kCIContextUseSoftwareRenderer: true}];
|
||||||
#else
|
#else
|
||||||
CIContext *context = [CIContext contextWithCGContext:bitmapRef options:nil];
|
CIContext *context = [CIContext contextWithCGContext:bitmapRef options:@{kCIContextUseSoftwareRenderer: @true}];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CGImageRef bitmapImage = [context createCGImage:image fromRect:extent];
|
CGImageRef bitmapImage = [context createCGImage:image fromRect:extent];
|
||||||
|
Reference in New Issue
Block a user