Add additional extension requirements for floating point textures.

This commit is contained in:
Duck
2021-09-15 09:17:04 -07:00
parent cb6995d71a
commit 5afd25150f
2 changed files with 6 additions and 1 deletions

View File

@@ -235,7 +235,7 @@ A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUF
### 63
Support for the `OES_element_index_uint` WebGL extension is mandatory for WebGL layers.
Support for the `OES_element_index_uint`, `OES_texture_float`, and `OES_texture_float_linear` WebGL extensions are mandatory for WebGL layers.
### 64

View File

@@ -279,7 +279,12 @@ class WebGLHelper extends Disposable {
this.currentProgram_ = null;
assert(includes(getSupportedExtensions(), 'OES_element_index_uint'), 63);
assert(includes(getSupportedExtensions(), 'OES_texture_float'), 63);
assert(includes(getSupportedExtensions(), 'OES_texture_float_linear'), 63);
gl.getExtension('OES_element_index_uint');
gl.getExtension('OES_texture_float');
gl.getExtension("OES_texture_float_linear");
this.canvas_.addEventListener(
ContextEventType.LOST,