Don't write to pNext pointers in SerialiseNext() when writing

* These pNext pointers might be in read-only memory so it would cause an
  exception, and nothing has changed so there's no need.
This commit is contained in:
baldurk
2021-06-24 16:55:02 +01:00
parent c3d19f87f0
commit 8f0e1de669
+2 -1
View File
@@ -1482,7 +1482,8 @@ static void SerialiseNext(SerialiserType &ser, VkStructureType &sType, void *&pN
{
const void *tmpNext = pNext;
SerialiseNext(ser, sType, tmpNext);
pNext = (void *)tmpNext;
if(ser.IsReading())
pNext = (void *)tmpNext;
}
static inline void DeserialiseNext(const void *pNext)