Commit caa99fad authored by Jan Möbius's avatar Jan Möbius
Browse files

toAsscii not available in qt5 use toUtf8

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6b29d8ad
......@@ -1809,7 +1809,7 @@ void ShaderProgGenerator::scanShaderTemplate(QStringList& _templateSrc, QString
QString trimmedLine = it->trimmed();
// scan and adjust glsl version
QByteArray lineBytes = trimmedLine.toAscii();
QByteArray lineBytes = trimmedLine.toUtf8();
int templateVersion = 0;
if (sscanf(lineBytes.constData(), "#version %d", &templateVersion) == 1)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment