@@ -564,7 +564,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
564
564
#ifdef _WIN32
565
565
HookWidget (ui->disableAudioDucking , CHECK_CHANGED, ADV_CHANGED);
566
566
#endif
567
- #if defined(_WIN32) || defined(__APPLE__)
567
+ #if defined(_WIN32) || defined(__APPLE__) || defined(__linux__)
568
568
HookWidget (ui->browserHWAccel , CHECK_CHANGED, ADV_RESTART);
569
569
#endif
570
570
HookWidget (ui->filenameFormatting , EDIT_CHANGED, ADV_CHANGED);
@@ -659,7 +659,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
659
659
delete ui->enableNewSocketLoop ;
660
660
delete ui->enableLowLatencyMode ;
661
661
delete ui->hideOBSFromCapture ;
662
- #ifdef __linux__
662
+ #if !defined(__APPLE__) && !defined( __linux__)
663
663
delete ui->browserHWAccel ;
664
664
delete ui->sourcesGroup ;
665
665
#endif
@@ -674,7 +674,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
674
674
ui->enableNewSocketLoop = nullptr ;
675
675
ui->enableLowLatencyMode = nullptr ;
676
676
ui->hideOBSFromCapture = nullptr ;
677
- #ifdef __linux__
677
+ #if !defined(__APPLE__) && !defined( __linux__)
678
678
ui->browserHWAccel = nullptr ;
679
679
ui->sourcesGroup = nullptr ;
680
680
#endif
@@ -2994,7 +2994,7 @@ void OBSBasicSettings::LoadAdvancedSettings()
2994
2994
ui->enableLowLatencyMode ->setToolTip (
2995
2995
QTStr (" Basic.Settings.Advanced.Network.TCPPacing.Tooltip" ));
2996
2996
#endif
2997
- #if defined(_WIN32) || defined(__APPLE__)
2997
+ #if defined(_WIN32) || defined(__APPLE__) || defined(__linux__)
2998
2998
bool browserHWAccel = config_get_bool (App ()->GlobalConfig (), " General" ,
2999
2999
" BrowserHWAccel" );
3000
3000
ui->browserHWAccel ->setChecked (browserHWAccel);
@@ -3623,7 +3623,7 @@ void OBSBasicSettings::SaveAdvancedSettings()
3623
3623
SaveCheckBox (ui->enableNewSocketLoop , " Output" , " NewSocketLoopEnable" );
3624
3624
SaveCheckBox (ui->enableLowLatencyMode , " Output" , " LowLatencyEnable" );
3625
3625
#endif
3626
- #if defined(_WIN32) || defined(__APPLE__)
3626
+ #if defined(_WIN32) || defined(__APPLE__) || defined(__linux__)
3627
3627
bool browserHWAccel = ui->browserHWAccel ->isChecked ();
3628
3628
config_set_bool (App ()->GlobalConfig (), " General" , " BrowserHWAccel" ,
3629
3629
browserHWAccel);
0 commit comments