mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 12:55:14 +03:00
add macos to the canvas pile
This commit is contained in:
parent
0cf4c23ce9
commit
2088a49b15
1 changed files with 2 additions and 1 deletions
|
@ -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});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue