Skip to content

Commit

Permalink
GPUImagePicture: don't redraw using CoreGraphics unless you have to
Browse files Browse the repository at this point in the history
There was support for this but it appeared to have been disabled.
  • Loading branch information
karlvr committed Oct 17, 2013
1 parent adf85c2 commit 08d1521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Source/iOS/GPUImagePicture.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ - (id)initWithCGImage:(CGImageRef)newImageSource smoothlyScaleOutput:(BOOL)smoot
pixelSizeOfImage = CGSizeMake(widthOfImage, heightOfImage);
CGSize pixelSizeToUseForTexture = pixelSizeOfImage;

BOOL shouldRedrawUsingCoreGraphics = YES;
BOOL shouldRedrawUsingCoreGraphics = NO;

// For now, deal with images larger than the maximum texture size by resizing to be within that limit
CGSize scaledImageSizeToFitOnGPU = [GPUImageContext sizeThatFitsWithinATextureForSize:pixelSizeOfImage];
Expand Down

0 comments on commit 08d1521

Please sign in to comment.