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 QString &source) {
|
||||||
const auto result = new QOpenGLShader(type, program);
|
const auto result = new QOpenGLShader(type, program);
|
||||||
if (!result->compileSourceCode(source)) {
|
if (!result->compileSourceCode(source)) {
|
||||||
LOG(("Shader Compilation Failed: %1, error %2."
|
LOG(("Shader Compilation Failed: %1, error %2.").arg(
|
||||||
).arg(source
|
source,
|
||||||
).arg(result->log()));
|
result->log()));
|
||||||
}
|
}
|
||||||
program->addShader(result);
|
program->addShader(result);
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue