@@ -198,6 +198,15 @@ static void RenderKeyboardInputsFrame(DummyWindow& window) {
198198 RenderSettingsFrame (window, trc (" tabs.inputs" ), trc (" inputs.keyboard" ));
199199}
200200
201+ static bool SkipIfNoModernGuiTestGL (const DummyWindow& window) {
202+ if (window.hasModernGL ()) {
203+ return false ;
204+ }
205+
206+ std::cout << " SKIP (no GL 3.3+)" << std::endl;
207+ return true ;
208+ }
209+
201210static GuiTestInteractionRect ExpectGuiInteractionRect (const char * id, const std::string& label) {
202211 GuiTestInteractionRect rect;
203212 Expect (GetGuiTestInteractionRect (id, rect), label + " missing GUI interaction rect '" + id + " '." );
@@ -543,6 +552,7 @@ void RunKeyRebindRuntimeDisabledRebindIgnoredTest(TestRunMode runMode = TestRunM
543552
544553void RunKeyRebindGuiKeyboardLayoutFullBindAndTriggerTest (TestRunMode runMode = TestRunMode::Automated) {
545554 DummyWindow window (kWindowWidth , kWindowHeight , runMode == TestRunMode::Visual);
555+ if (SkipIfNoModernGuiTestGL (window)) { return ; }
546556 PrepareRebindGuiCase (" key_rebind_gui_keyboard_layout_full_bind_and_trigger" );
547557
548558 RenderKeyboardInputsFrame (window);
@@ -589,6 +599,7 @@ void RunKeyRebindGuiKeyboardLayoutFullBindAndTriggerTest(TestRunMode runMode = T
589599
590600void RunKeyRebindGuiKeyboardLayoutSplitBindAndTriggerTest (TestRunMode runMode = TestRunMode::Automated) {
591601 DummyWindow window (kWindowWidth , kWindowHeight , runMode == TestRunMode::Visual);
602+ if (SkipIfNoModernGuiTestGL (window)) { return ; }
592603 PrepareRebindGuiCase (" key_rebind_gui_keyboard_layout_split_bind_and_trigger" );
593604
594605 RenderKeyboardInputsFrame (window);
@@ -654,6 +665,7 @@ void RunKeyRebindGuiKeyboardLayoutSplitBindAndTriggerTest(TestRunMode runMode =
654665
655666void RunKeyRebindGuiKeyboardLayoutMouseSourceBindAndTriggerTest (TestRunMode runMode = TestRunMode::Automated) {
656667 DummyWindow window (kWindowWidth , kWindowHeight , runMode == TestRunMode::Visual);
668+ if (SkipIfNoModernGuiTestGL (window)) { return ; }
657669 PrepareRebindGuiCase (" key_rebind_gui_keyboard_layout_mouse_source_bind_and_trigger" );
658670
659671 RenderKeyboardInputsFrame (window);
0 commit comments