mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Demote error to warning when failing to open a logfile
* This means you don't hit a debugbreak and fire an exception in profile if you load an image file (which tries to load as a logfile first, and fails).
This commit is contained in:
@@ -184,7 +184,7 @@ Serialiser::Serialiser(size_t length, const byte *memoryBuf, bool fileheader)
|
||||
char magicFile[5] = { 0 };
|
||||
memcpy(magicRef, &MAGIC_HEADER, sizeof(uint32_t));
|
||||
memcpy(magicFile, &header->magic, sizeof(uint32_t));
|
||||
RDCERR("Invalid in-memory buffer. Expected magic %s, got %s", magicRef, magicFile);
|
||||
RDCWARN("Invalid in-memory buffer. Expected magic %s, got %s", magicRef, magicFile);
|
||||
|
||||
m_ErrorCode = eSerError_Corrupt;
|
||||
m_HasError = true;
|
||||
|
||||
Reference in New Issue
Block a user