mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 13:30:44 +00:00
Handle hlsl/glsl matrix dimension order properly in buffer formatter
This commit is contained in:
@@ -229,7 +229,7 @@ ShaderConstant BufferFormatter::ParseFormatString(const QString &formatString, u
|
||||
QString arrayDim = !match.captured(7).isEmpty() ? match.captured(7).trimmed() : lit("[1]");
|
||||
arrayDim = arrayDim.mid(1, arrayDim.count() - 2);
|
||||
|
||||
if(!match.captured(5).isEmpty())
|
||||
if(!match.captured(5).isEmpty() && basetype != lit("mat"))
|
||||
firstDim.swap(secondDim);
|
||||
|
||||
el.type.descriptor.name = match.captured(1) + match.captured(2) + match.captured(3) +
|
||||
|
||||
Reference in New Issue
Block a user