summaryrefslogtreecommitdiffstats
path: root/dom/canvas/WebGLContextExtensions.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-08-01 20:45:58 +0200
committerGitHub <noreply@github.com>2018-08-01 20:45:58 +0200
commitf8761cf8c5233f75123a7245a1e6a0aa12e22160 (patch)
treec85031f115b088d6b60af6f7ad34a9ca9a64a134 /dom/canvas/WebGLContextExtensions.cpp
parente79f2ee69455df701e559c10f8a9408fe8870281 (diff)
parentd84ee90be10b67358a2a2340041337aec0cf04d8 (diff)
downloadUXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar
UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar.gz
UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar.lz
UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.tar.xz
UXP-f8761cf8c5233f75123a7245a1e6a0aa12e22160.zip
Merge pull request #688 from janekptacijarabaci/about-support_WebGL-information_expand_1
Expand about:support WebGL information
Diffstat (limited to 'dom/canvas/WebGLContextExtensions.cpp')
-rw-r--r--dom/canvas/WebGLContextExtensions.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/canvas/WebGLContextExtensions.cpp b/dom/canvas/WebGLContextExtensions.cpp
index 4a5a23274..7f338b4e9 100644
--- a/dom/canvas/WebGLContextExtensions.cpp
+++ b/dom/canvas/WebGLContextExtensions.cpp
@@ -40,6 +40,7 @@ WebGLContext::GetExtensionString(WebGLExtensionID ext)
WEBGL_EXTENSION_IDENTIFIER(EXT_sRGB)
WEBGL_EXTENSION_IDENTIFIER(EXT_texture_filter_anisotropic)
WEBGL_EXTENSION_IDENTIFIER(EXT_disjoint_timer_query)
+ WEBGL_EXTENSION_IDENTIFIER(MOZ_debug_get)
WEBGL_EXTENSION_IDENTIFIER(OES_element_index_uint)
WEBGL_EXTENSION_IDENTIFIER(OES_standard_derivatives)
WEBGL_EXTENSION_IDENTIFIER(OES_texture_float)
@@ -91,6 +92,8 @@ bool WebGLContext::IsExtensionSupported(dom::CallerType callerType,
switch (ext) {
case WebGLExtensionID::EXT_disjoint_timer_query:
return WebGLExtensionDisjointTimerQuery::IsSupported(this);
+ case WebGLExtensionID::MOZ_debug_get:
+ return true;
case WebGLExtensionID::WEBGL_debug_renderer_info:
return true;
case WebGLExtensionID::WEBGL_debug_shaders:
@@ -372,6 +375,11 @@ WebGLContext::EnableExtension(WebGLExtensionID ext)
obj = new WebGLExtensionTextureFilterAnisotropic(this);
break;
+ // MOZ_
+ case WebGLExtensionID::MOZ_debug_get:
+ obj = new WebGLExtensionDebugGet(this);
+ break;
+
// OES_
case WebGLExtensionID::OES_element_index_uint:
obj = new WebGLExtensionElementIndexUint(this);