You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
[Linux/BSD] Offload RenderingDevice creation test to subprocess.
(cherry picked from commit 6ed12bfc5d)
This commit is contained in:
committed by
Rémi Verschelde
parent
f045c4c283
commit
14d7775217
@@ -1331,10 +1331,14 @@ bool DisplayServer::is_rendering_device_supported() {
|
||||
|
||||
Error err;
|
||||
|
||||
#ifdef WINDOWS_ENABLED
|
||||
// On some NVIDIA drivers combining OpenGL and RenderingDevice can result in crash, offload the check to the subprocess.
|
||||
#if defined(WINDOWS_ENABLED) || defined(LINUXBSD_ENABLED)
|
||||
// On some drivers combining OpenGL and RenderingDevice can result in crash, offload the check to the subprocess.
|
||||
List<String> arguments;
|
||||
arguments.push_back("--test-rd-support");
|
||||
if (get_singleton()) {
|
||||
arguments.push_back("--display-driver");
|
||||
arguments.push_back(get_singleton()->get_name().to_lower());
|
||||
}
|
||||
|
||||
String pipe;
|
||||
int exitcode = 0;
|
||||
|
||||
Reference in New Issue
Block a user