Fix shader issue on Mali 400 and Tegra 3 GPUs, closes #939

This commit is contained in:
JannisX11 2021-07-21 12:56:45 +02:00
parent db9a370b81
commit cc73aa8a9c
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@
const appVersion = '3.9.2';
window.onerror = (message, file, line) => {
if (window.Blockbench && window.Blockbench.setup_successful) return;
if (typeof Blockbench != 'undefined' && Blockbench.setup_successful) return;
let error_element = document.querySelector('#loading_error_detail');
if (error_element && !error_element.innerText) {

View File

@ -96,7 +96,7 @@ const Canvas = {
}`
var fragShader = `
#ifdef GL_ES
precision highp float;
precision ${isApp ? 'highp' : 'mediump'} float;
#endif
uniform bool SHADE;
@ -670,7 +670,7 @@ const Canvas = {
}`
var fragShader = `
#ifdef GL_ES
precision highp float;
precision ${isApp ? 'highp' : 'mediump'} float;
#endif
uniform sampler2D t0;

View File

@ -95,7 +95,7 @@ class Texture {
}`
var fragShader = `
#ifdef GL_ES
precision highp float;
precision ${isApp ? 'highp' : 'mediump'} float;
#endif
uniform sampler2D map;