Project import generated by Copybara.

PiperOrigin-RevId: 254856010
This commit is contained in:
MediaPipe Team
2019-06-24 16:19:49 -07:00
committed by jqtang
parent fcb23fd99d
commit 2aaf4693db
21 changed files with 275 additions and 43 deletions
+2 -1
View File
@@ -77,7 +77,8 @@ bool GlTextureBuffer::CreateInternal(const void* data) {
// TODO: maybe we do not actually have to wait for the
// consumer sync here. Check docs.
sync_token->WaitOnGpu();
if (glIsTexture(name_to_delete)) glDeleteTextures(1, &name_to_delete);
DCHECK(glIsTexture(name_to_delete));
glDeleteTextures(1, &name_to_delete);
});
};