Add the ID for the resource underneath image views

* Without this we don't properly cache the references for images, only for
  views.
This commit is contained in:
baldurk
2020-08-12 11:19:55 +01:00
parent b0d3fb12a9
commit e2e7c1f80c
+1
View File
@@ -2148,6 +2148,7 @@ public:
void AddImgFrameRef(std::set<ResourceId> &ids, VkResourceRecord *view, FrameRefType refType)
{
ids.insert(view->baseResource);
AddBindFrameRef(ids, view->GetResourceID(), eFrameRef_Read,
view->resInfo && view->resInfo->IsSparse());
if(view->baseResourceMem != ResourceId())