No public description

PiperOrigin-RevId: 590913209
This commit is contained in:
MediaPipe Team 2023-12-14 06:03:06 -08:00 committed by Copybara-Service
parent 04bcb0d2ee
commit 4004c2dfaa

View File

@ -697,10 +697,13 @@ class GlFenceSyncPoint : public GlSyncPoint {
void Wait() override { void Wait() override {
if (!sync_) return; if (!sync_) return;
gl_context_->Run([this] { if (GlContext::IsAnyContextCurrent()) {
// TODO: must this run on the original context??
sync_.Wait(); sync_.Wait();
}); return;
}
// In case a current GL context is not available, we fall back using the
// captured gl_context_.
gl_context_->Run([this] { sync_.Wait(); });
} }
void WaitOnGpu() override { void WaitOnGpu() override {