Răsfoiți Sursa

fixed float texture support: requires linear filtering in webgl2

ncannasse 7 ani în urmă
părinte
comite
e787c5ec3e
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      h3d/impl/GlDriver.hx

+ 1 - 1
h3d/impl/GlDriver.hx

@@ -1209,7 +1209,7 @@ class GlDriver extends Driver {
 			true;
 
 		case FloatTextures if( glES >= 3 ):
-			gl.getExtension('EXT_color_buffer_float') != null; // allow render to 16f/32f textures (not standard in webgl 2)
+			gl.getExtension('EXT_color_buffer_float') != null && gl.getExtension("OES_texture_float_linear") != null; // allow render to 16f/32f textures (not standard in webgl 2)
 
 		case StandardDerivatives:
 			gl.getExtension('OES_standard_derivatives') != null;