Skip to content
Snippets Groups Projects
Commit 3fff4eff authored by Brian Peiris's avatar Brian Peiris
Browse files

120 printWidth in prettier

parent 8648b003
No related branches found
No related tags found
No related merge requests found
{
"printWidth": 120
}
...@@ -7,17 +7,8 @@ function checkFloatTextureSupport() { ...@@ -7,17 +7,8 @@ function checkFloatTextureSupport() {
const scene = new THREE.Scene(); const scene = new THREE.Scene();
const size = 2; const size = 2;
const data = new Float32Array(size * size * 4); const data = new Float32Array(size * size * 4);
const dataTexture = new THREE.DataTexture( const dataTexture = new THREE.DataTexture(data, size, size, THREE.RGBAFormat, THREE.FloatType);
data, const box = new THREE.Mesh(new THREE.PlaneBufferGeometry(1, 1), new THREE.MeshBasicMaterial({ map: dataTexture }));
size,
size,
THREE.RGBAFormat,
THREE.FloatType
);
const box = new THREE.Mesh(
new THREE.PlaneBufferGeometry(1, 1),
new THREE.MeshBasicMaterial({ map: dataTexture })
);
box.material.map.needsUpdate = true; box.material.map.needsUpdate = true;
scene.add(box); scene.add(box);
...@@ -36,11 +27,7 @@ export function patchWebGLRenderingContext() { ...@@ -36,11 +27,7 @@ export function patchWebGLRenderingContext() {
// for those devices. // for those devices.
// See https://github.com/mozilla/mr-social-client/issues/32 and // See https://github.com/mozilla/mr-social-client/issues/32 and
// https://bugzilla.mozilla.org/show_bug.cgi?id=1338656 // https://bugzilla.mozilla.org/show_bug.cgi?id=1338656
if ( if (name === "OES_texture_float" && /Android.+Firefox/.test(navigator.userAgent) && !supportsFloatTextures) {
name === "OES_texture_float" &&
/Android.+Firefox/.test(navigator.userAgent) &&
!supportsFloatTextures
) {
return null; return null;
} }
return originalGetExtension.call(this, name); return originalGetExtension.call(this, name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment