mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-17 15:30:51 +00:00
Fix implementation of WriteAll for rdcarray types
This commit is contained in:
@@ -343,7 +343,7 @@ inline bool WriteAll(const char *filename, const void *buffer, size_t size)
|
||||
template <typename T>
|
||||
bool WriteAll(const char *filename, const rdcarray<T> &buffer)
|
||||
{
|
||||
return WriteAll(filename, buffer.data(), buffer.size());
|
||||
return WriteAll(filename, buffer.data(), buffer.size() * sizeof(T));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user