mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user