Skip to content

Commit

Permalink
[opencl] Fix device selection on start
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Aug 8, 2018
1 parent 41e7e71 commit a420474
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/qgsoptions.cpp
Expand Up @@ -1096,11 +1096,16 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
// Info updater
std::function<void( int )> infoUpdater = [ = ]( int )
{
<<<<<<< 41e7e71db720385195af51c40df201a1aa077b0d
mGPUInfoTextBrowser->setText( QgsOpenClUtils::deviceDescription( mOpenClDevicesCombo->currentData().toString() ) );
=======
mGPUInfoLabel->setText( QgsOpenClUtils::deviceDescription( mOpenClDevicesCombo->currentData().toString() ) );
>>>>>>> [opencl] Fix device selection on start
};
connect( mOpenClDevicesCombo, qgis::overload< int >::of( &QComboBox::currentIndexChanged ), infoUpdater );
mOpenClDevicesCombo->setCurrentIndex( mOpenClDevicesCombo->findData( QgsOpenClUtils::deviceId( QgsOpenClUtils::activeDevice() ) ) );
infoUpdater( -1 );
<<<<<<< 41e7e71db720385195af51c40df201a1aa077b0d
=======
mGPUInfoLabel->setText( QStringLiteral( "OpenCL compatible GPU found on your system:<br>"
"Name: <b>%1</b><br>"
Expand All @@ -1122,6 +1127,8 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
)
);
>>>>>>> [opencl] Test with image2d
=======
>>>>>>> [opencl] Fix device selection on start
}
else
{
Expand Down

0 comments on commit a420474

Please sign in to comment.