Kaynağa Gözat

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

Dominic Szablewski 11 yıl önce
ebeveyn
işleme
c9e7de0d31
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      jsmpg.js

+ 2 - 2
jsmpg.js Dosyayı Görüntüle

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