Bug 1584277 - Expose WebGL OES_fbo_render_mipmap. r=lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D47302

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jeff Gilbert 2019-09-26 16:43:48 +00:00
parent d7ab277e4e
commit cfdf39067e
3 changed files with 2 additions and 7 deletions

View File

@ -83,9 +83,6 @@ WebGLExtensionFBORenderMipmap::~WebGLExtensionFBORenderMipmap() = default;
bool WebGLExtensionFBORenderMipmap::IsSupported(
const WebGLContext* const webgl) {
if (webgl->IsWebGL2()) return false;
if (!StaticPrefs::webgl_enable_draft_extensions()) {
return false;
}
const auto& gl = webgl->gl;
if (!gl->IsGLES()) return true;

View File

@ -11,9 +11,7 @@
'use strict';
Lastly_WithDraftExtsEnabled(function() {
EnsureExtFor('webgl', 'OES_fbo_render_mipmap');
});
EnsureExtFor('webgl', 'OES_fbo_render_mipmap');
</script>
</body>

View File

@ -23,6 +23,7 @@ var defaultExts = [
['EXT_shader_texture_lod' , [MACHINE_SPECIFIC, FORBID ]],
['EXT_texture_filter_anisotropic', [MACHINE_SPECIFIC, MACHINE_SPECIFIC]],
['OES_element_index_uint' , [ENSURE , FORBID ]],
['OES_fbo_render_mipmap' , [MACHINE_SPECIFIC, FORBID ]],
['OES_standard_derivatives' , [MACHINE_SPECIFIC, FORBID ]],
['OES_texture_float' , [ENSURE , FORBID ]],
['OES_texture_float_linear' , [ENSURE , ENSURE ]],
@ -55,7 +56,6 @@ var defaultExts = [
];
var draftExts = [
['OES_fbo_render_mipmap' , [MACHINE_SPECIFIC, FORBID ]],
['WEBGL_explicit_present', [ENSURE , ENSURE ]],
];