Skip to content

Commit

Permalink
Fix assertion in GPUImageView when using Autolayout
Browse files Browse the repository at this point in the history
  • Loading branch information
tcamin committed Mar 18, 2014
1 parent b0103a9 commit a35ed8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/Source/iOS/GPUImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ - (void)commonInit;
}

- (void)layoutSubviews {
[super layoutSubviews];

// The frame buffer needs to be trashed and re-created when the view size changes.
if (!CGSizeEqualToSize(self.bounds.size, boundsSizeAtFrameBufferEpoch) &&
!CGSizeEqualToSize(self.bounds.size, CGSizeZero)) {
Expand Down

0 comments on commit a35ed8e

Please sign in to comment.