graphics() fixed dual gpu issue (macOS)
This commit is contained in:
+2
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user