mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Check for GLSL style square matrix formatting strings. Refs #414
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user