mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Don't check for GL_OES_element_index_unit with desktop GL (fixes #20921)
This commit is contained in:
parent
a76777b115
commit
c7603bd4ca
2 changed files with 12 additions and 1 deletions
|
@ -37,7 +37,11 @@ impl WebGLExtension for OESElementIndexUint {
|
|||
}
|
||||
|
||||
fn is_supported(ext: &WebGLExtensions) -> bool {
|
||||
ext.supports_gl_extension("GL_OES_element_index_uint")
|
||||
if cfg!(any(target_os = "android", target_os = "ios")) {
|
||||
return ext.supports_gl_extension("GL_OES_element_index_uint");
|
||||
}
|
||||
// This extension is always available in desktop OpenGL.
|
||||
true
|
||||
}
|
||||
|
||||
fn enable(ext: &WebGLExtensions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue