Implement OES_element_index_uint (fixes #20384)

This commit is contained in:
Anthony Ramine 2018-03-23 02:47:39 +01:00
parent 8061d8c3d2
commit 838d1305ca
6 changed files with 127 additions and 5 deletions

View file

@ -2163,6 +2163,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
let type_size = match type_ {
constants::UNSIGNED_BYTE => 1,
constants::UNSIGNED_SHORT => 2,
constants::UNSIGNED_INT if self.extension_manager.is_element_index_uint_enabled() => 4,
_ => return self.webgl_error(InvalidEnum),
};