mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 20:01:17 +00:00
Fix deserialising uint64_t on 32bit ARM device.
This commit is contained in:
@@ -592,7 +592,12 @@ private:
|
||||
}
|
||||
|
||||
char *data = (char *)ReadBytes(sizeof(T));
|
||||
#if defined(_M_ARM) || defined(__arm__)
|
||||
// Fetches on ARM have to be aligned according to the type size.
|
||||
memcpy(&f, data, sizeof(T));
|
||||
#else
|
||||
f = *((T *)data);
|
||||
#endif
|
||||
}
|
||||
|
||||
// no copies
|
||||
|
||||
Reference in New Issue
Block a user