mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Properly enable EXT_shader_texture_lod
This commit is contained in:
parent
388a6f80ac
commit
124fe69818
3 changed files with 8 additions and 1 deletions
|
@ -37,7 +37,11 @@ impl WebGLExtension for EXTShaderTextureLod {
|
|||
}
|
||||
|
||||
fn is_supported(ext: &WebGLExtensions) -> bool {
|
||||
ext.supports_gl_extension("GL_EXT_shader_texture_lod")
|
||||
if cfg!(any(target_os = "android", target_os = "ios")) {
|
||||
return ext.supports_gl_extension("GL_EXT_shader_texture_lod");
|
||||
}
|
||||
// This extension is always available on desktop GL.
|
||||
true
|
||||
}
|
||||
|
||||
fn enable(_ext: &WebGLExtensions) {}
|
||||
|
|
|
@ -265,6 +265,7 @@ impl WebGLExtensions {
|
|||
}
|
||||
|
||||
fn register_all_extensions(&self) {
|
||||
self.register::<ext::extshadertexturelod::EXTShaderTextureLod>();
|
||||
self.register::<ext::exttexturefilteranisotropic::EXTTextureFilterAnisotropic>();
|
||||
self.register::<ext::oeselementindexuint::OESElementIndexUint>();
|
||||
self.register::<ext::oesstandardderivatives::OESStandardDerivatives>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue