Internal change

PiperOrigin-RevId: 491441446
This commit is contained in:
MediaPipe Team 2022-11-28 14:15:16 -08:00 committed by Copybara-Service
parent 342f95fa20
commit b65c40b302

View File

@ -54,10 +54,11 @@
glGenRenderbuffers(1, &renderbuffer_);
glBindRenderbuffer(GL_RENDERBUFFER, renderbuffer_);
glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, renderbuffer_);
BOOL success = [_glRenderer.glContext renderbufferStorage:GL_RENDERBUFFER fromDrawable:_layer];
BOOL success __unused = [_glRenderer.glContext renderbufferStorage:GL_RENDERBUFFER
fromDrawable:_layer];
NSAssert(success, @"could not create renderbuffer storage for layer with bounds %@",
NSStringFromCGRect(_layer.bounds));
GLenum status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
GLenum status __unused = glCheckFramebufferStatus(GL_FRAMEBUFFER);
NSAssert(status == GL_FRAMEBUFFER_COMPLETE,
@"failed to make complete framebuffer object %x", status);
}