mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-06 17:31:09 +08:00
Fix shader issue on Mali 400 and Tegra 3 GPUs, closes #939
This commit is contained in:
parent
db9a370b81
commit
cc73aa8a9c
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -95,7 +95,7 @@ class Texture {
|
||||
}`
|
||||
var fragShader = `
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
precision ${isApp ? 'highp' : 'mediump'} float;
|
||||
#endif
|
||||
|
||||
uniform sampler2D map;
|
||||
|
Loading…
x
Reference in New Issue
Block a user