@@ -551,7 +551,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
551
551
#ifdef _WIN32
552
552
HookWidget (ui->disableAudioDucking , CHECK_CHANGED, ADV_CHANGED);
553
553
#endif
554
- #if defined(_WIN32) || defined(__APPLE__)
554
+ #if defined(_WIN32) || defined(__APPLE__) || defined(__linux__)
555
555
HookWidget (ui->browserHWAccel , CHECK_CHANGED, ADV_RESTART);
556
556
#endif
557
557
HookWidget (ui->filenameFormatting , EDIT_CHANGED, ADV_CHANGED);
@@ -639,7 +639,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
639
639
delete ui->enableNewSocketLoop ;
640
640
delete ui->enableLowLatencyMode ;
641
641
delete ui->hideOBSFromCapture ;
642
- #ifdef __linux__
642
+ #if !defined(__APPLE__) && !defined( __linux__)
643
643
delete ui->browserHWAccel ;
644
644
delete ui->sourcesGroup ;
645
645
#endif
@@ -654,7 +654,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
654
654
ui->enableNewSocketLoop = nullptr ;
655
655
ui->enableLowLatencyMode = nullptr ;
656
656
ui->hideOBSFromCapture = nullptr ;
657
- #ifdef __linux__
657
+ #if !defined(__APPLE__) && !defined( __linux__)
658
658
ui->browserHWAccel = nullptr ;
659
659
ui->sourcesGroup = nullptr ;
660
660
#endif
@@ -2614,7 +2614,7 @@ void OBSBasicSettings::LoadAdvancedSettings()
2614
2614
ui->enableLowLatencyMode ->setChecked (enableLowLatencyMode);
2615
2615
ui->enableLowLatencyMode ->setToolTip (QTStr (" Basic.Settings.Advanced.Network.TCPPacing.Tooltip" ));
2616
2616
#endif
2617
- #if defined(_WIN32) || defined(__APPLE__)
2617
+ #if defined(_WIN32) || defined(__APPLE__) || defined(__linux__)
2618
2618
bool browserHWAccel = config_get_bool (App ()->GetUserConfig (), " General" , " BrowserHWAccel" );
2619
2619
ui->browserHWAccel ->setChecked (browserHWAccel);
2620
2620
prevBrowserAccel = ui->browserHWAccel ->isChecked ();
@@ -3161,7 +3161,7 @@ void OBSBasicSettings::SaveAdvancedSettings()
3161
3161
SaveCheckBox (ui->enableNewSocketLoop , " Output" , " NewSocketLoopEnable" );
3162
3162
SaveCheckBox (ui->enableLowLatencyMode , " Output" , " LowLatencyEnable" );
3163
3163
#endif
3164
- #if defined(_WIN32) || defined(__APPLE__)
3164
+ #if defined(_WIN32) || defined(__APPLE__) || defined(__linux__)
3165
3165
bool browserHWAccel = ui->browserHWAccel ->isChecked ();
3166
3166
config_set_bool (App ()->GetUserConfig (), " General" , " BrowserHWAccel" , browserHWAccel);
3167
3167
#endif
0 commit comments