X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=glwidget.cpp;fp=glwidget.cpp;h=3d5b0f97abe86a494bedda4ee5607e14499a2be2;hb=9b9f5c84113b8a818f296467fd2150ce6a095fbe;hp=01d372f1adb92f0ca6abee6f07119056a8dc9ed2;hpb=d62349fd118e89b16adfc5478c73cd8e10136364;p=nageru diff --git a/glwidget.cpp b/glwidget.cpp index 01d372f..3d5b0f9 100644 --- a/glwidget.cpp +++ b/glwidget.cpp @@ -47,8 +47,8 @@ void GLWidget::clean_context() void GLWidget::initializeGL() { - static std::once_flag flag; - std::call_once(flag, [this]{ + static once_flag flag; + call_once(flag, [this]{ global_mixer = new Mixer(QGLFormat::toSurfaceFormat(format()), global_flags.num_cards); global_mainwindow->mixer_created(global_mixer); global_mixer->start();