@@ -523,7 +523,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
523
523
#ifdef _WIN32
524
524
HookWidget (ui->disableAudioDucking , CHECK_CHANGED, ADV_CHANGED);
525
525
#endif
526
- #if defined(_WIN32) || defined(__APPLE__)
526
+ #if defined(_WIN32) || defined(__APPLE__) || defined(__linux__)
527
527
HookWidget (ui->browserHWAccel , CHECK_CHANGED, ADV_RESTART);
528
528
#endif
529
529
HookWidget (ui->filenameFormatting , EDIT_CHANGED, ADV_CHANGED);
@@ -611,7 +611,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
611
611
delete ui->enableNewSocketLoop ;
612
612
delete ui->enableLowLatencyMode ;
613
613
delete ui->hideOBSFromCapture ;
614
- #ifdef __linux__
614
+ #if !defined(__APPLE__) && !defined( __linux__)
615
615
delete ui->browserHWAccel ;
616
616
delete ui->sourcesGroup ;
617
617
#endif
@@ -626,7 +626,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
626
626
ui->enableNewSocketLoop = nullptr ;
627
627
ui->enableLowLatencyMode = nullptr ;
628
628
ui->hideOBSFromCapture = nullptr ;
629
- #ifdef __linux__
629
+ #if !defined(__APPLE__) && !defined( __linux__)
630
630
ui->browserHWAccel = nullptr ;
631
631
ui->sourcesGroup = nullptr ;
632
632
#endif
@@ -2586,7 +2586,7 @@ void OBSBasicSettings::LoadAdvancedSettings()
2586
2586
ui->enableLowLatencyMode ->setChecked (enableLowLatencyMode);
2587
2587
ui->enableLowLatencyMode ->setToolTip (QTStr (" Basic.Settings.Advanced.Network.TCPPacing.Tooltip" ));
2588
2588
#endif
2589
- #if defined(_WIN32) || defined(__APPLE__)
2589
+ #if defined(_WIN32) || defined(__APPLE__) || defined(__linux__)
2590
2590
bool browserHWAccel = config_get_bool (App ()->GetAppConfig (), " General" , " BrowserHWAccel" );
2591
2591
ui->browserHWAccel ->setChecked (browserHWAccel);
2592
2592
prevBrowserAccel = ui->browserHWAccel ->isChecked ();
@@ -3133,7 +3133,7 @@ void OBSBasicSettings::SaveAdvancedSettings()
3133
3133
SaveCheckBox (ui->enableNewSocketLoop , " Output" , " NewSocketLoopEnable" );
3134
3134
SaveCheckBox (ui->enableLowLatencyMode , " Output" , " LowLatencyEnable" );
3135
3135
#endif
3136
- #if defined(_WIN32) || defined(__APPLE__)
3136
+ #if defined(_WIN32) || defined(__APPLE__) || defined(__linux__)
3137
3137
bool browserHWAccel = ui->browserHWAccel ->isChecked ();
3138
3138
config_set_bool (App ()->GetAppConfig (), " General" , " BrowserHWAccel" , browserHWAccel);
3139
3139
#endif
0 commit comments