Fix compile error comparing enums

This commit is contained in:
baldurk
2017-05-17 13:20:41 +01:00
parent 3fff6fa86a
commit 9831a8eb24
@@ -381,7 +381,7 @@ void PipelineStateViewer::exportHTMLTable(QXmlStreamWriter &xml, const QStringLi
QMetaType::Type type = (QMetaType::Type)el.type();
if(el.type() == QMetaType::Bool)
if(type == QMetaType::Bool)
xml.writeCharacters(el.toBool() ? tr("True") : tr("False"));
else
xml.writeCharacters(el.toString());
@@ -648,4 +648,4 @@ bool PipelineStateViewer::SaveShaderFile(const ShaderReflection *shader)
}
return true;
}
}