From c2103ed2ba422a4b7c64125c696acc11e135d2a7 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 2 Nov 2016 13:58:04 +0100 Subject: [PATCH] Check for GLSL style square matrix formatting strings. Refs #414 --- renderdocui/Code/FormatElement.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderdocui/Code/FormatElement.cs b/renderdocui/Code/FormatElement.cs index e7edc5bee..754b01e5a 100644 --- a/renderdocui/Code/FormatElement.cs +++ b/renderdocui/Code/FormatElement.cs @@ -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))