From 7d2421fccc117f36870e3fec66bf77cdf529d0ed Mon Sep 17 00:00:00 2001 From: Jed Date: Thu, 28 May 2015 14:57:03 -0400 Subject: [PATCH] Don't offer to do 3D graphics on the internal GPU Signed-off-by: Jed --- widgets/xenclient/VMDetails.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/widgets/xenclient/VMDetails.js b/widgets/xenclient/VMDetails.js index c5481e3..e4f7c14 100755 --- a/widgets/xenclient/VMDetails.js +++ b/widgets/xenclient/VMDetails.js @@ -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);