mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement OES_element_index_uint (fixes #20384)
This commit is contained in:
parent
8061d8c3d2
commit
838d1305ca
6 changed files with 127 additions and 5 deletions
|
@ -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),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue