Internal change

PiperOrigin-RevId: 477887963
This commit is contained in:
Jiuqiang Tang
2022-09-30 15:43:01 +00:00
committed by Sebastian Schmidt
parent 382158298b
commit 133c3b3c00
+4 -1
View File
@@ -185,7 +185,10 @@ void GlTextureBuffer::Updated(std::shared_ptr<GlSyncPoint> prod_token) {
<< "Updated existing texture which had not been marked for reuse!";
CHECK(prod_token);
producer_sync_ = std::move(prod_token);
producer_context_ = producer_sync_->GetContext();
const auto& synced_context = producer_sync_->GetContext();
if (synced_context) {
producer_context_ = synced_context;
}
}
void GlTextureBuffer::DidRead(std::shared_ptr<GlSyncPoint> cons_token) const {