Ensure temporaries don't detach with range loop
This commit is contained in:
parent
955bf2dfa9
commit
4dd604e61e
1 changed files with 2 additions and 1 deletions
|
|
@ -186,8 +186,9 @@ Capabilities CheckCapabilities(QWidget *widget, bool avoidWidgetCreation) {
|
|||
const auto version = reinterpret_cast<const char*>(
|
||||
functions->glGetString(GL_VERSION));
|
||||
LOG(("OpenGL Version: %1").arg(version ? version : "[nullptr]"));
|
||||
const auto extensions = context->extensions();
|
||||
auto list = QStringList();
|
||||
for (const auto &extension : context->extensions()) {
|
||||
for (const auto &extension : extensions) {
|
||||
list.append(QString::fromLatin1(extension));
|
||||
}
|
||||
LOG(("OpenGL Extensions: %1").arg(list.join(", ")));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue