Fix detection of "matN" in buffer format specifier

This commit is contained in:
baldurk
2017-06-19 13:45:43 +01:00
parent a998de110d
commit b2f760a1c6
+1 -1
View File
@@ -228,7 +228,7 @@ QList<FormatElement> FormatElement::ParseFormatString(const QString &formatStrin
uint32_t width = 0;
// check for square matrix declarations like 'mat4' and 'mat3'
if(basetype == lit("mat") && !match.captured(5).isEmpty())
if(basetype == lit("mat") && match.captured(5).isEmpty())
matrixDim = vectorDim;
// calculate format