mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Fix display of 64-bit integers in buffer viewer
This commit is contained in:
@@ -1133,6 +1133,18 @@ private:
|
||||
else
|
||||
ret = Formatter::Format(i);
|
||||
}
|
||||
else if(vt == QMetaType::ULongLong)
|
||||
{
|
||||
ret = Formatter::Format(v.toULongLong(), el.hex);
|
||||
}
|
||||
else if(vt == QMetaType::LongLong)
|
||||
{
|
||||
int64_t i = v.toLongLong();
|
||||
if(i >= 0)
|
||||
ret = lit(" ") + Formatter::Format(i);
|
||||
else
|
||||
ret = Formatter::Format(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = v.toString();
|
||||
|
||||
Reference in New Issue
Block a user