mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-01 19:46:27 +00:00
SerialiseObject must use MakeRes to get type info
This commit is contained in:
1 parent
c31fad9570
commit
38c2803389
1 file changed
+1
-1
@@ -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