QString::arg usage optimization
This commit is contained in:
parent
d95f9e778b
commit
83f12e2dd0
1 changed files with 3 additions and 3 deletions
|
|
@ -199,9 +199,9 @@ not_null<QOpenGLShader*> MakeShader(
|
|||
const QString &source) {
|
||||
const auto result = new QOpenGLShader(type, program);
|
||||
if (!result->compileSourceCode(source)) {
|
||||
LOG(("Shader Compilation Failed: %1, error %2."
|
||||
).arg(source
|
||||
).arg(result->log()));
|
||||
LOG(("Shader Compilation Failed: %1, error %2.").arg(
|
||||
source,
|
||||
result->log()));
|
||||
}
|
||||
program->addShader(result);
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue