mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Fix bug decoding hex digits 'a'-'f' without offset by 0xa. Refs #499
This commit is contained in:
@@ -1846,9 +1846,9 @@ SPDBChunk::SPDBChunk(void *chunk)
|
||||
if(value[i] >= '0' && value[i] <= '9')
|
||||
digit = (uint32_t)(value[i] - '0');
|
||||
if(value[i] >= 'a' && value[i] <= 'f')
|
||||
digit = (uint32_t)(value[i] - 'a');
|
||||
digit = 0xa + (uint32_t)(value[i] - 'a');
|
||||
if(value[i] >= 'A' && value[i] <= 'F')
|
||||
digit = (uint32_t)(value[i] - 'A');
|
||||
digit = 0xa + (uint32_t)(value[i] - 'A');
|
||||
|
||||
m_ShaderFlags <<= 4;
|
||||
m_ShaderFlags |= digit;
|
||||
|
||||
Reference in New Issue
Block a user