Bladeren bron

Switch to mediump floats in fragment shaders for compatability; close #35

Dominic Szablewski 11 jaren geleden
bovenliggende
commit
c9e7de0d31
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      jsmpg.js

+ 2 - 2
jsmpg.js Bestand weergeven

2304
 
2304
 
2305
 	// Shaders for accelerated WebGL YCbCrToRGBA conversion
2305
 	// Shaders for accelerated WebGL YCbCrToRGBA conversion
2306
 	SHADER_FRAGMENT_YCBCRTORGBA = [
2306
 	SHADER_FRAGMENT_YCBCRTORGBA = [
2307
-		'precision highp float;',
2307
+		'precision mediump float;',
2308
 		'uniform sampler2D YTexture;',
2308
 		'uniform sampler2D YTexture;',
2309
 		'uniform sampler2D CBTexture;',
2309
 		'uniform sampler2D CBTexture;',
2310
 		'uniform sampler2D CRTexture;',
2310
 		'uniform sampler2D CRTexture;',
2325
 	].join('\n'),
2325
 	].join('\n'),
2326
 
2326
 
2327
 	SHADER_FRAGMENT_LOADING = [
2327
 	SHADER_FRAGMENT_LOADING = [
2328
-		'precision highp float;',
2328
+		'precision mediump float;',
2329
 		'uniform float loaded;',
2329
 		'uniform float loaded;',
2330
 		'varying vec2 texCoord;',
2330
 		'varying vec2 texCoord;',
2331
 
2331