mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
Bug 1335296 - Expand about:support WebGL information
This commit is contained in:
parent
b266e5e349
commit
43c36e207f
25 changed files with 256 additions and 29 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue