From 2088a49b15c7f0d1a1093dfd368dc45dbbcd6f85 Mon Sep 17 00:00:00 2001 From: cTn Date: Mon, 22 Sep 2014 20:03:30 +0200 Subject: [PATCH] add macos to the canvas pile --- tabs/setup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tabs/setup.js b/tabs/setup.js index 48719daae6..ce4acace3f 100644 --- a/tabs/setup.js +++ b/tabs/setup.js @@ -315,8 +315,9 @@ TABS.setup.initialize3D = function (compatibility) { var camera = new THREE.PerspectiveCamera(50, wrapper.width() / wrapper.height(), 1, 10000); + // we really need to find a reliable way of detecting WebGL support, since we are getting mixed results on linux/cros/macos var renderer; - if (GUI.operating_system != 'Linux' || GUI.operating_system != 'CrOS') { + if (GUI.operating_system == 'Windows') { renderer = new THREE.WebGLRenderer({canvas: canvas.get(0), alpha: true, antialias: true}); } else { renderer = new THREE.CanvasRenderer({canvas: canvas.get(0), alpha: true});