Skip to content

Commit

Permalink
Merge pull request #21 from jean-edouard/master
Browse files Browse the repository at this point in the history
Don't offer to do 3D graphics on the internal GPU
  • Loading branch information
rossphilipson committed May 29, 2015
2 parents cda9888 + 7d2421f commit 6462ec5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions widgets/xenclient/VMDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,10 @@ return declare("citrix.xenclient.VMDetails", [dialog, _boundContainerMixin, _edi
this.isos.set("map", isoMap);

var gpuMap = {};
var discrete_gpus = XUICache.Host.available_gpus.slice(1);
gpuMap[this.DISABLED] = "";
dojo.forEach(XUICache.Host.available_gpus, function(gpu) {
gpuMap[(XUICache.Host.available_gpus.length == 1) ? this.ENABLED : gpu.name] = gpu.addr;
dojo.forEach(discrete_gpus, function(gpu) {
gpuMap[(discrete_gpus.length == 1) ? this.ENABLED : gpu.name] = gpu.addr;
}, this);

this.threed.set("map", gpuMap);
Expand Down

0 comments on commit 6462ec5

Please sign in to comment.