Skip to content

Commit

Permalink
Fixed a compilation error with older Xcodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
BradLarson committed May 9, 2013
1 parent 2c07c22 commit bdda333
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions framework/Source/GPUImageBilateralFilter.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ void main()

@implementation GPUImageBilateralFilter

@synthesize distanceNormalizationFactor = _distanceNormalizationFactor;

- (id)init;
{

Expand Down
2 changes: 1 addition & 1 deletion framework/Source/GPUImageStillCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ - (void)capturePhotoProcessedUpToFilter:(GPUImageOutput<GPUImageInput> *)finalFi

// For now, resize photos to fix within the max texture size of the GPU
CVImageBufferRef cameraFrame = CMSampleBufferGetImageBuffer(imageSampleBuffer);

CGSize sizeOfPhoto = CGSizeMake(CVPixelBufferGetWidth(cameraFrame), CVPixelBufferGetHeight(cameraFrame));
CGSize scaledImageSizeToFitOnGPU = [GPUImageContext sizeThatFitsWithinATextureForSize:sizeOfPhoto];
if (!CGSizeEqualToSize(sizeOfPhoto, scaledImageSizeToFitOnGPU))
Expand Down

0 comments on commit bdda333

Please sign in to comment.