Check for GLSL style square matrix formatting strings. Refs #414

This commit is contained in:
baldurk
2016-11-02 13:58:04 +01:00
parent a2979984ba
commit c2103ed2ba
+4
View File
@@ -500,6 +500,10 @@ namespace renderdocui.Code
uint matrixCount = 0;
uint width = 0;
// check for square matrix declarations like 'mat4' and 'mat3'
if (basetype == "mat" && !match.Groups[4].Success)
matrixDim = vectorDim;
// calculate format
{
if (!uint.TryParse(vectorDim, out count))