mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 10:43:21 +02:00
BUGZ-1103: Use 'Master GPU' information in About screen
This commit is contained in:
parent
7322ad78f5
commit
2a4c0a3ecd
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ Flickable {
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
var gpu = JSON.parse(PlatformInfo.getGPU(0));
|
var gpu = JSON.parse(PlatformInfo.getGPU(PlatformInfo.getMasterGPU()));
|
||||||
var gpuModel = gpu.model;
|
var gpuModel = gpu.model;
|
||||||
if (gpuModel.length === 0) {
|
if (gpuModel.length === 0) {
|
||||||
gpuModel = "Unknown";
|
gpuModel = "Unknown";
|
||||||
|
@ -313,7 +313,7 @@ Flickable {
|
||||||
textToCopy += "# CPU Cores: " + PlatformInfo.getNumLogicalCores() + "\n";
|
textToCopy += "# CPU Cores: " + PlatformInfo.getNumLogicalCores() + "\n";
|
||||||
textToCopy += "RAM: " + PlatformInfo.getTotalSystemMemoryMB() + " MB\n";
|
textToCopy += "RAM: " + PlatformInfo.getTotalSystemMemoryMB() + " MB\n";
|
||||||
|
|
||||||
var gpu = JSON.parse(PlatformInfo.getGPU(0));
|
var gpu = JSON.parse(PlatformInfo.getGPU(PlatformInfo.getMasterGPU()));
|
||||||
var gpuModel = gpu.model;
|
var gpuModel = gpu.model;
|
||||||
if (gpuModel.length === 0) {
|
if (gpuModel.length === 0) {
|
||||||
gpuModel = "Unknown";
|
gpuModel = "Unknown";
|
||||||
|
|
Loading…
Reference in a new issue