commit | 2089f050df7b8400b0fdde43f8e420e4ff410c47 | [log] [tgz] |
---|---|---|
author | Gurchetan Singh <[email protected]> | Thu Jan 06 16:42:03 2022 -0800 |
committer | Gurchetan Singh <[email protected]> | Thu Jan 06 16:43:41 2022 -0800 |
tree | a62026118e38f366a57cafcf56a15c58fe0a8b85 | |
parent | 6f58d91cb8c6d6803fdef7d17d576c1011cfd386 [diff] [blame] |
vulkan-cereal: fix mismatch between context ids and resource ids We should look up based on context id. BUG=213395171 TEST=compile Change-Id: I3e95b1c61bc09ae2f85360148c218a5c58bb45ba
diff --git a/stream-servers/virtio-gpu-gfxstream-renderer.cpp b/stream-servers/virtio-gpu-gfxstream-renderer.cpp index df96d28..c389a4f 100644 --- a/stream-servers/virtio-gpu-gfxstream-renderer.cpp +++ b/stream-servers/virtio-gpu-gfxstream-renderer.cpp
@@ -1360,7 +1360,7 @@ mResourceContexts[resId] = ids; } else { auto& ids = contextsIt->second; - auto idIt = std::find(ids.begin(), ids.end(), resId); + auto idIt = std::find(ids.begin(), ids.end(), ctxId); if (idIt == ids.end()) ids.push_back(ctxId); }