Skip to content

Commit

Permalink
Applied karlvr's suggested fix for the Lanczos resampling filter's re…
Browse files Browse the repository at this point in the history
…nderTarget crash, based on pull request BradLarson#880.
  • Loading branch information
BradLarson committed Apr 18, 2013
1 parent 5ab73bb commit 6d5b921
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions framework/Source/GPUImageLanczosResamplingFilter.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,7 @@ - (void)setFilterFBO;

if (!filterFramebuffer)
{
if ([GPUImageOpenGLESContext supportsFastTextureUpload] && preparedToCaptureImage)
{
preparedToCaptureImage = NO;
[super createFilterFBOofSize:currentFBOSize];
preparedToCaptureImage = YES;
}
else
{
[super createFilterFBOofSize:currentFBOSize];
}
[super createFilterFBOofSize:currentFBOSize];
[self setupFilterForSize:currentFBOSize];
}

Expand Down

0 comments on commit 6d5b921

Please sign in to comment.