diff options
author | Corey Richardson <corey@octayn.net> | 2014-01-26 17:15:42 -0500 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-02-03 14:58:02 +0000 |
commit | f300646b085595d53c87f9763d031960bc6f0325 (patch) | |
tree | e816224dd2576d54c09d4598e5a897b901430530 /gui/mainwindow.cpp | |
parent | e8272e25f1a0fc0c473e0f74a658493ccabbb688 (diff) |
qapitrace: Add option to retrace with core profile.
This was preventing using qapitrace to debug issues using Mesa. The
application being debugged used GL 3.3, but since a core profile wasn't
requested, the max Mesa would give was 3.0.
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r-- | gui/mainwindow.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 3accf6e9..96e9c3e4 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -199,6 +199,9 @@ void MainWindow::replayStart() dlgUi.singlethreadCB->setChecked( m_retracer->isSinglethread()); + dlgUi.coreProfileCB->setChecked( + m_retracer->isCoreProfile()); + if (dlg.exec() == QDialog::Accepted) { m_retracer->setDoubleBuffered( dlgUi.doubleBufferingCB->isChecked()); @@ -209,6 +212,9 @@ void MainWindow::replayStart() m_retracer->setSinglethread( dlgUi.singlethreadCB->isChecked()); + m_retracer->setCoreProfile( + dlgUi.coreProfileCB->isChecked()); + m_retracer->setProfiling(false, false, false); replayTrace(false, false); @@ -479,7 +485,7 @@ variantListToItems(const QVector<QVariant> &lst, QString key = QString::number(i); QVariant var = lst[i]; QVariant defaultVar; - + if (i < defaultLst.count()) { defaultVar = defaultLst[i]; } |