mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
d7ab277e4e
commit
cfdf39067e
@ -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;
|
||||
|
@ -11,9 +11,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
Lastly_WithDraftExtsEnabled(function() {
|
||||
EnsureExtFor('webgl', 'OES_fbo_render_mipmap');
|
||||
});
|
||||
EnsureExtFor('webgl', 'OES_fbo_render_mipmap');
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
@ -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 ]],
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user