From be65a45f23ee8c71b6e3e73a7c7edc497e9b170e Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 11 Feb 2015 15:12:49 +0000 Subject: [PATCH] Fix crash on proxy serialising --- renderdoc/core/replay_proxy.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/renderdoc/core/replay_proxy.cpp b/renderdoc/core/replay_proxy.cpp index 4d8ed4f72..b1d7b229d 100644 --- a/renderdoc/core/replay_proxy.cpp +++ b/renderdoc/core/replay_proxy.cpp @@ -783,6 +783,19 @@ void Serialiser::Serialise(const char *name, FetchDrawcall &el) SIZE_CHECK(FetchDrawcall, 168); } +template<> +void Serialiser::Serialise(const char *name, FetchFrameInfo &el) +{ + Serialise("", el.frameNumber); + Serialise("", el.firstEvent); + Serialise("", el.fileOffset); + Serialise("", el.captureTime); + Serialise("", el.immContextId); + Serialise("", el.debugMessages); + + SIZE_CHECK(FetchFrameInfo, 40); +} + template<> void Serialiser::Serialise(const char *name, FetchFrameRecord &el) { @@ -930,8 +943,6 @@ string ToStrHelper::Get(const EventUsage &el) { return "<...> template<> string ToStrHelper::Get(const CounterResult &el) { return "<...>"; } template<> -string ToStrHelper::Get(const FetchFrameInfo &el) { return "<...>"; } -template<> string ToStrHelper::Get(const ReplayLogType &el) { return "<...>"; } #pragma endregion Plain-old data structures