[Linux/BSD] Offload RenderingDevice creation test to subprocess.
This commit is contained in:
parent
1753893c60
commit
6ed12bfc5d
11 changed files with 149 additions and 50 deletions
|
|
@ -2359,7 +2359,7 @@ void OS_Windows::add_frame_delay(bool p_can_draw) {
|
|||
}
|
||||
}
|
||||
|
||||
bool OS_Windows::_test_create_rendering_device() const {
|
||||
bool OS_Windows::_test_create_rendering_device(const String &p_display_driver) const {
|
||||
// Tests Rendering Device creation.
|
||||
|
||||
bool ok = false;
|
||||
|
|
@ -2394,7 +2394,7 @@ bool OS_Windows::_test_create_rendering_device() const {
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool OS_Windows::_test_create_rendering_device_and_gl() const {
|
||||
bool OS_Windows::_test_create_rendering_device_and_gl(const String &p_display_driver) const {
|
||||
// Tests OpenGL context and Rendering Device simultaneous creation. This function is expected to crash on some NVIDIA drivers.
|
||||
|
||||
WNDCLASSEXW wc_probe;
|
||||
|
|
@ -2438,7 +2438,7 @@ bool OS_Windows::_test_create_rendering_device_and_gl() const {
|
|||
}
|
||||
|
||||
if (ok) {
|
||||
ok = _test_create_rendering_device();
|
||||
ok = _test_create_rendering_device(p_display_driver);
|
||||
}
|
||||
|
||||
#ifdef GLES3_ENABLED
|
||||
|
|
|
|||
|
|
@ -252,8 +252,8 @@ public:
|
|||
|
||||
void set_main_window(HWND p_main_window) { main_window = p_main_window; }
|
||||
|
||||
virtual bool _test_create_rendering_device_and_gl() const override;
|
||||
virtual bool _test_create_rendering_device() const override;
|
||||
virtual bool _test_create_rendering_device_and_gl(const String &p_display_driver) const override;
|
||||
virtual bool _test_create_rendering_device(const String &p_display_driver) const override;
|
||||
|
||||
HINSTANCE get_hinstance() { return hInstance; }
|
||||
OS_Windows(HINSTANCE _hInstance);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue