Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Sep 25, 2015
1 parent 9e1c6e8 commit 303f204
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/Source/iOS/GPUImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ - (void)layoutSubviews {
runSynchronouslyOnVideoProcessingQueue(^{
[self destroyDisplayFramebuffer];
[self createDisplayFramebuffer];
[self recalculateViewGeometry];
});
} else if (!CGSizeEqualToSize(self.bounds.size, CGSizeZero)) {
[self recalculateViewGeometry];
Expand Down Expand Up @@ -189,6 +188,8 @@ - (void)createDisplayFramebuffer;
GLuint framebufferCreationStatus = glCheckFramebufferStatus(GL_FRAMEBUFFER);
NSAssert(framebufferCreationStatus == GL_FRAMEBUFFER_COMPLETE, @"Failure with display framebuffer generation for display of size: %f, %f", self.bounds.size.width, self.bounds.size.height);
boundsSizeAtFrameBufferEpoch = self.bounds.size;

[self recalculateViewGeometry];
}

- (void)destroyDisplayFramebuffer;
Expand Down

0 comments on commit 303f204

Please sign in to comment.