Fix wrong ID being serialised for deferred contexts

This commit is contained in:
baldurk
2020-09-16 15:33:09 +01:00
parent e73ce8f8e8
commit 9b40bb7279
+2 -1
View File
@@ -2937,7 +2937,8 @@ bool WrappedID3D11Device::Serialise_CreateDeferredContext(SerialiserType &ser,
ID3D11DeviceContext **ppDeferredContext)
{
SERIALISE_ELEMENT(ContextFlags);
SERIALISE_ELEMENT_LOCAL(pDeferredContext, GetIDForDeviceChild(*ppDeferredContext))
SERIALISE_ELEMENT_LOCAL(pDeferredContext,
((WrappedID3D11DeviceContext *)*ppDeferredContext)->GetResourceID())
.TypedAs("ID3D11DeviceContext *"_lit);
SERIALISE_CHECK_READ_ERRORS();