mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-14 09:45:47 +00:00
SerialiseObject must use MakeRes to get type info
This commit is contained in:
@@ -1068,7 +1068,7 @@ string ToStrHelper<false, VkPresentModeWSI>::Get(const VkPresentModeWSI &el)
|
||||
#define SerialiseObject(type, name, obj) \
|
||||
{ \
|
||||
ResourceId id; \
|
||||
if(m_Mode >= WRITING) id = MGR()->GetID(obj.handle); \
|
||||
if(m_Mode >= WRITING) id = MGR()->GetID(MakeRes(obj)); \
|
||||
Serialise(name, id); \
|
||||
if(m_Mode < WRITING) obj = type(MGR()->GetLiveResource(id).handle); \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user