mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
Fix alignment bug in demo helper
Change-Id: I890bea8ddba6d47074dcf9135443c61f2601a972
This commit is contained in:
@@ -1251,7 +1251,7 @@ private:
|
||||
}
|
||||
const VkAttachmentReference *MakeRealPtr(const VkAttachmentReference *ptr)
|
||||
{
|
||||
return ptr + ptrdiff_t(attrefs.data()) / sizeof(VkAttachmentReference) - 1;
|
||||
return attrefs.data() + ptrdiff_t(ptr) / sizeof(VkAttachmentReference) - 1;
|
||||
}
|
||||
|
||||
std::vector<VkAttachmentReference> attrefs;
|
||||
|
||||
Reference in New Issue
Block a user