Bug 1308057 - EXT_disjoint_timer_query is no longer Draft. - r=ethlin
MozReview-Commit-ID: ETtrxQcwPgg
--- a/dom/canvas/WebGLContextExtensions.cpp
+++ b/dom/canvas/WebGLContextExtensions.cpp
@@ -107,16 +107,18 @@ WebGLContext::IsExtensionSupported(WebGL
{
if (mDisableExtensions)
return false;
// Extensions for both WebGL 1 and 2.
switch (ext) {
// In alphabetical order
// EXT_
+ case WebGLExtensionID::EXT_disjoint_timer_query:
+ return WebGLExtensionDisjointTimerQuery::IsSupported(this);
case WebGLExtensionID::EXT_texture_filter_anisotropic:
return gl->IsExtensionSupported(gl::GLContext::EXT_texture_filter_anisotropic);
// OES_
case WebGLExtensionID::OES_texture_float_linear:
return gl->IsSupported(gl::GLFeature::texture_float_linear);
// WEBGL_
@@ -206,24 +208,23 @@ WebGLContext::IsExtensionSupported(WebGL
case WebGLExtensionID::WEBGL_draw_buffers:
return WebGLExtensionDrawBuffers::IsSupported(this);
default:
// For warnings-as-errors.
break;
}
if (gfxPrefs::WebGLDraftExtensionsEnabled()) {
+ /*
switch (ext) {
- case WebGLExtensionID::EXT_disjoint_timer_query:
- return WebGLExtensionDisjointTimerQuery::IsSupported(this);
-
default:
// For warnings-as-errors.
break;
}
+ */
}
}
return false;
}
static bool
CompareWebGLExtensionName(const nsACString& name, const char* other)