소스 검색

fixed float texture support: requires linear filtering in webgl2

ncannasse 7 년 전
부모
커밋
e787c5ec3e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;