Skip to content

Commit 48eb94b

Browse files
committed
Fix for review #301 (comment)
1 parent 2125e75 commit 48eb94b

File tree

3 files changed

+20
-100
lines changed

3 files changed

+20
-100
lines changed

baselines/dom.generated.d.ts

+10-60
Original file line numberDiff line numberDiff line change
@@ -12491,16 +12491,16 @@ interface WebGLRenderingContext {
1249112491
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
1249212492
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
1249312493
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
12494-
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture|null;
12495-
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info|null;
12496-
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc|null;
12497-
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear|null;
12498-
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float|null;
12499-
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear|null;
12500-
getExtension(extensionName: "OES_texture_float"): OES_texture_float|null;
12501-
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives|null;
12502-
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint|null;
12503-
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays|null;
12494+
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
12495+
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
12496+
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
12497+
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
12498+
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
12499+
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
12500+
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
12501+
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
12502+
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
12503+
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
1250412504
getExtension(extensionName: string): any;
1250512505
getFramebufferAttachmentParameter(target: number, attachment: number, pname: number): any;
1250612506
getParameter(pname: number): any;
@@ -14657,31 +14657,16 @@ interface EXT_blend_minmax {
1465714657
interface EXT_frag_depth {
1465814658
}
1465914659

14660-
declare var EXT_frag_depth: {
14661-
prototype: EXT_frag_depth;
14662-
new(): EXT_frag_depth;
14663-
};
14664-
1466514660
interface EXT_shader_texture_lod {
1466614661
}
1466714662

14668-
declare var EXT_shader_texture_lod: {
14669-
prototype: EXT_shader_texture_lod;
14670-
new(): EXT_shader_texture_lod;
14671-
};
14672-
1467314663
interface EXT_sRGB {
1467414664
readonly SRGB_EXT: number;
1467514665
readonly SRGB_ALPHA_EXT: number;
1467614666
readonly SRGB8_ALPHA8_EXT: number;
1467714667
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: number;
1467814668
}
1467914669

14680-
declare var EXT_sRGB: {
14681-
prototype: EXT_sRGB;
14682-
new(): EXT_sRGB;
14683-
};
14684-
1468514670
interface OES_vertex_array_object {
1468614671
readonly VERTEX_ARRAY_BINDING_OES: number;
1468714672
createVertexArrayOES(): WebGLVertexArrayObjectOES;
@@ -14690,31 +14675,16 @@ interface OES_vertex_array_object {
1469014675
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void;
1469114676
}
1469214677

14693-
declare var OES_vertex_array_object: {
14694-
prototype: OES_vertex_array_object;
14695-
new(): OES_vertex_array_object;
14696-
};
14697-
1469814678
interface WebGLVertexArrayObjectOES {
1469914679
}
1470014680

14701-
declare var WebGLVertexArrayObjectOES: {
14702-
prototype: WebGLVertexArrayObjectOES;
14703-
new(): WebGLVertexArrayObjectOES;
14704-
};
14705-
1470614681
interface WEBGL_color_buffer_float {
1470714682
readonly RGBA32F_EXT: number;
1470814683
readonly RGB32F_EXT: number;
1470914684
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: number;
1471014685
readonly UNSIGNED_NORMALIZED_EXT: number;
1471114686
}
1471214687

14713-
declare var WEBGL_color_buffer_float: {
14714-
prototype: WEBGL_color_buffer_float;
14715-
new(): WEBGL_color_buffer_float;
14716-
};
14717-
1471814688
interface WEBGL_compressed_texture_astc {
1471914689
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: number;
1472014690
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: number;
@@ -14747,32 +14717,17 @@ interface WEBGL_compressed_texture_astc {
1474714717
getSupportedProfiles(): string[];
1474814718
}
1474914719

14750-
declare var WEBGL_compressed_texture_astc: {
14751-
prototype: WEBGL_compressed_texture_astc;
14752-
new(): WEBGL_compressed_texture_astc;
14753-
};
14754-
1475514720
interface WEBGL_compressed_texture_s3tc_srgb {
1475614721
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: number;
1475714722
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: number;
1475814723
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: number;
1475914724
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: number;
1476014725
}
1476114726

14762-
declare var WEBGL_compressed_texture_s3tc_srgb: {
14763-
prototype: WEBGL_compressed_texture_s3tc_srgb;
14764-
new(): WEBGL_compressed_texture_s3tc_srgb;
14765-
};
14766-
1476714727
interface WEBGL_debug_shaders {
1476814728
getTranslatedShaderSource(shader: WebGLShader): string;
1476914729
}
1477014730

14771-
declare var WEBGL_debug_shaders: {
14772-
prototype: WEBGL_debug_shaders;
14773-
new(): WEBGL_debug_shaders;
14774-
};
14775-
1477614731
interface WEBGL_draw_buffers {
1477714732
readonly COLOR_ATTACHMENT0_WEBGL: number;
1477814733
readonly COLOR_ATTACHMENT1_WEBGL: number;
@@ -14811,11 +14766,6 @@ interface WEBGL_draw_buffers {
1481114766
drawBuffersWEBGL(buffers: number[]): void;
1481214767
}
1481314768

14814-
declare var WEBGL_draw_buffers: {
14815-
prototype: WEBGL_draw_buffers;
14816-
new(): WEBGL_draw_buffers;
14817-
};
14818-
1481914769
interface WEBGL_lose_context {
1482014770
loseContext(): void;
1482114771
restoreContext(): void;

inputfiles/addedTypes.json

-30
Original file line numberDiff line numberDiff line change
@@ -1943,27 +1943,18 @@
19431943
"kind": "interface",
19441944
"name": "EXT_frag_depth",
19451945
"flavor": "DOM",
1946-
"constructorSignatures": [
1947-
"new(): EXT_frag_depth"
1948-
],
19491946
"properties": []
19501947
},
19511948
{
19521949
"kind": "interface",
19531950
"name": "EXT_shader_texture_lod",
19541951
"flavor": "DOM",
1955-
"constructorSignatures": [
1956-
"new(): EXT_shader_texture_lod"
1957-
],
19581952
"properties": []
19591953
},
19601954
{
19611955
"kind": "interface",
19621956
"name": "EXT_sRGB",
19631957
"flavor": "DOM",
1964-
"constructorSignatures": [
1965-
"new(): EXT_sRGB"
1966-
],
19671958
"properties": [
19681959
{
19691960
"readonly": true,
@@ -1991,9 +1982,6 @@
19911982
"kind": "interface",
19921983
"name": "OES_vertex_array_object",
19931984
"flavor": "DOM",
1994-
"constructorSignatures": [
1995-
"new(): OES_vertex_array_object"
1996-
],
19971985
"properties": [
19981986
{
19991987
"readonly": true,
@@ -2032,18 +2020,12 @@
20322020
"kind": "interface",
20332021
"name": "WebGLVertexArrayObjectOES",
20342022
"flavor": "DOM",
2035-
"constructorSignatures": [
2036-
"new(): WebGLVertexArrayObjectOES"
2037-
],
20382023
"properties": []
20392024
},
20402025
{
20412026
"kind": "interface",
20422027
"name": "WEBGL_color_buffer_float",
20432028
"flavor": "DOM",
2044-
"constructorSignatures": [
2045-
"new(): WEBGL_color_buffer_float"
2046-
],
20472029
"properties": [
20482030
{
20492031
"readonly": true,
@@ -2071,9 +2053,6 @@
20712053
"kind": "interface",
20722054
"name": "WEBGL_compressed_texture_astc",
20732055
"flavor": "DOM",
2074-
"constructorSignatures": [
2075-
"new(): WEBGL_compressed_texture_astc"
2076-
],
20772056
"properties": [
20782057
{
20792058
"readonly": true,
@@ -2229,9 +2208,6 @@
22292208
"kind": "interface",
22302209
"name": "WEBGL_compressed_texture_s3tc_srgb",
22312210
"flavor": "DOM",
2232-
"constructorSignatures": [
2233-
"new(): WEBGL_compressed_texture_s3tc_srgb"
2234-
],
22352211
"properties": [
22362212
{
22372213
"readonly": true,
@@ -2259,9 +2235,6 @@
22592235
"kind": "interface",
22602236
"name": "WEBGL_debug_shaders",
22612237
"flavor": "DOM",
2262-
"constructorSignatures": [
2263-
"new(): WEBGL_debug_shaders"
2264-
],
22652238
"methods": [
22662239
{
22672240
"name": "getTranslatedShaderSource",
@@ -2275,9 +2248,6 @@
22752248
"kind": "interface",
22762249
"name": "WEBGL_draw_buffers",
22772250
"flavor": "DOM",
2278-
"constructorSignatures": [
2279-
"new(): WEBGL_draw_buffers"
2280-
],
22812251
"properties": [
22822252
{
22832253
"readonly": true,

inputfiles/overridingTypes.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1059,16 +1059,16 @@
10591059
"getExtension(extensionName: \"WEBGL_debug_shaders\"): WEBGL_debug_shaders | null",
10601060
"getExtension(extensionName: \"WEBGL_draw_buffers\"): WEBGL_draw_buffers | null",
10611061
"getExtension(extensionName: \"WEBGL_lose_context\"): WEBGL_lose_context | null",
1062-
"getExtension(extensionName: \"WEBGL_depth_texture\"): WEBGL_depth_texture|null",
1063-
"getExtension(extensionName: \"WEBGL_debug_renderer_info\"): WEBGL_debug_renderer_info|null",
1064-
"getExtension(extensionName: \"WEBGL_compressed_texture_s3tc\"): WEBGL_compressed_texture_s3tc|null",
1065-
"getExtension(extensionName: \"OES_texture_half_float_linear\"): OES_texture_half_float_linear|null",
1066-
"getExtension(extensionName: \"OES_texture_half_float\"): OES_texture_half_float|null",
1067-
"getExtension(extensionName: \"OES_texture_float_linear\"): OES_texture_float_linear|null",
1068-
"getExtension(extensionName: \"OES_texture_float\"): OES_texture_float|null",
1069-
"getExtension(extensionName: \"OES_standard_derivatives\"): OES_standard_derivatives|null",
1070-
"getExtension(extensionName: \"OES_element_index_uint\"): OES_element_index_uint|null",
1071-
"getExtension(extensionName: \"ANGLE_instanced_arrays\"): ANGLE_instanced_arrays|null",
1062+
"getExtension(extensionName: \"WEBGL_depth_texture\"): WEBGL_depth_texture | null",
1063+
"getExtension(extensionName: \"WEBGL_debug_renderer_info\"): WEBGL_debug_renderer_info | null",
1064+
"getExtension(extensionName: \"WEBGL_compressed_texture_s3tc\"): WEBGL_compressed_texture_s3tc | null",
1065+
"getExtension(extensionName: \"OES_texture_half_float_linear\"): OES_texture_half_float_linear | null",
1066+
"getExtension(extensionName: \"OES_texture_half_float\"): OES_texture_half_float | null",
1067+
"getExtension(extensionName: \"OES_texture_float_linear\"): OES_texture_float_linear | null",
1068+
"getExtension(extensionName: \"OES_texture_float\"): OES_texture_float | null",
1069+
"getExtension(extensionName: \"OES_standard_derivatives\"): OES_standard_derivatives | null",
1070+
"getExtension(extensionName: \"OES_element_index_uint\"): OES_element_index_uint | null",
1071+
"getExtension(extensionName: \"ANGLE_instanced_arrays\"): ANGLE_instanced_arrays | null",
10721072
"getExtension(extensionName: string): any"
10731073
]
10741074
},

0 commit comments

Comments
 (0)