No public description
PiperOrigin-RevId: 590913209
This commit is contained in:
parent
04bcb0d2ee
commit
4004c2dfaa
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user