Explorar el Código

get EXT_float_blend together with EXT_color_buffer_float

- firfox warns to do that for best support
Alexander Rose hace 4 años
padre
commit
b9a3620a4c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/mol-gl/webgl/compat.ts

+ 2 - 0
src/mol-gl/webgl/compat.ts

@@ -135,10 +135,12 @@ export interface COMPAT_color_buffer_float {
 export function getColorBufferFloat(gl: GLRenderingContext): COMPAT_color_buffer_float | null {
     if (isWebGL2(gl)) {
         if (gl.getExtension('EXT_color_buffer_float') === null) return null;
+        gl.getExtension('EXT_float_blend');
         return { RGBA32F: gl.RGBA32F };
     } else {
         const ext = gl.getExtension('WEBGL_color_buffer_float');
         if (ext === null) return null;
+        gl.getExtension('EXT_float_blend');
         return { RGBA32F: ext.RGBA32F_EXT };
     }
 }