graphics() fixed dual gpu issue (macOS)

This commit is contained in:
Sebastian Hildebrandt
2021-05-14 08:21:47 +02:00
parent 9a55c8b30f
commit 6b2a6d7879
4 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -108,7 +108,7 @@ function graphics(callback) {
};
}
if (Object.keys(currentDisplay).length > 0) {// just changed to Displays
displays.push(currentDisplay);
if (currentDisplay.resolutionX && currentDisplay.resolutionY) { displays.push(currentDisplay); }
currentDisplay = {
vendor: '',
model: '',
@@ -200,7 +200,7 @@ function graphics(callback) {
controllers.push(currentController);
}
if (Object.keys(currentDisplay).length > 0) {// just changed to Displays
displays.push(currentDisplay);
if (currentDisplay.resolutionX && currentDisplay.resolutionY) { displays.push(currentDisplay); }
}
return ({
controllers: controllers,