From c3e5533d0f2d8c7e8839fa63c51ada823c66bc20 Mon Sep 17 00:00:00 2001 From: Diego Marcos Date: Thu, 31 Jan 2019 15:20:25 -0800 Subject: [PATCH] Revert "Set shader precission to mediump in Mobile with no native VR. Fix problems with Adreno 300 series GPUs and improves perf. (fix #3971, #3523)" (#3988) --- src/core/scene/a-scene.js | 8 +------- src/index.js | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/core/scene/a-scene.js b/src/core/scene/a-scene.js index 756954ae091..478652886f6 100644 --- a/src/core/scene/a-scene.js +++ b/src/core/scene/a-scene.js @@ -548,13 +548,7 @@ module.exports.AScene = registerElement('a-scene', { var rendererAttrString; var rendererConfig; - rendererConfig = { - alpha: true, - antialias: !isMobile, - canvas: this.canvas, - logarithmicDepthBuffer: false, - precision: isMobile && !window.hasNativeVR ? 'mediump' : 'highp' - }; + rendererConfig = {alpha: true, antialias: !isMobile, canvas: this.canvas, logarithmicDepthBuffer: false}; this.maxCanvasSize = {height: 1920, width: 1920}; diff --git a/src/index.js b/src/index.js index 557723a1389..22e525db45c 100644 --- a/src/index.js +++ b/src/index.js @@ -6,7 +6,6 @@ window.Promise = window.Promise || require('promise-polyfill'); window.hasNativeWebVRImplementation = !!window.navigator.getVRDisplays || !!window.navigator.getVRDevices; window.hasNativeWebXRImplementation = navigator.xr !== undefined; -window.hasNativeVR = window.hasNativeWebVRImplementation || window.hasNativeWebXRImplementation; // If native WebXR or WebVR are defined WebVRPolyfill does not initialize. if (!window.hasNativeWebXRImplementation && !window.hasNativeWebVRImplementation) {