Skip to content

Commit bb43e51

Browse files
authored
WEBGL_shader_pixel_local_storage: Sync with upstream (#3781)
Removed implicit enablement of floating-point rendering extensions to match the ANGLE extension language. Updated and fixed tests.
1 parent 3d8e748 commit bb43e51

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

‎extensions/WEBGL_shader_pixel_local_storage/extension.xml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@
5656
When this extension is enabled, the following WebGL extensions are enabled implicitly:
5757
<ul>
5858
<li><a href="../OES_draw_buffers_indexed/">OES_draw_buffers_indexed</a></li>
59-
<li><a href="../EXT_color_buffer_float/">EXT_color_buffer_float</a></li>
60-
<li><a href="../EXT_color_buffer_half_float/">EXT_color_buffer_half_float</a></li>
6159
</ul>
6260
</div>
6361
</addendum>
@@ -294,5 +292,8 @@ interface WEBGL_shader_pixel_local_storage {
294292
<revision date="2026/03/02">
295293
<change>Renamed PIXEL_LOCAL_FORMAT_WEBGL to PIXEL_LOCAL_INTERNAL_FORMAT_WEBGL, tracking ANGLE extension.</change>
296294
</revision>
295+
<revision date="2026/06/25">
296+
<change>Removed implicit enablement of floating-point rendering extensions, tracking ANGLE extension.</change>
297+
</revision>
297298
</history>
298299
</draft>

‎sdk/tests/conformance2/extensions/webgl-shader-pixel-local-storage.html‎

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,10 @@
8282
shouldBeNull("gl.getParameter(0x96E0 /*MAX_PIXEL_LOCAL_STORAGE_PLANES_WEBGL*/)");
8383
wtu.glErrorShouldBe(gl, gl.INVALID_ENUM, "parameter unknown without enabling the extension");
8484
shouldBeNull(
85-
"gl.getParameter(0x96E1 /*MAX_COLOR_ATTACHMENTS_WITH_ACTIVE_PIXEL_LOCAL_STORAGE_WEBGL*/)");
85+
"gl.getParameter(0x96E1 /*MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_WEBGL*/)");
8686
wtu.glErrorShouldBe(gl, gl.INVALID_ENUM, "parameter unknown without enabling the extension");
8787
shouldBeNull(
88-
"gl.getParameter(0x96E2 /*MAX_COMBINED_DRAW_BUFFERS_AND_PIXEL_LOCAL_STORAGE_PLANES_WEBGL*/)");
89-
wtu.glErrorShouldBe(gl, gl.INVALID_ENUM, "parameter unknown without enabling the extension");
90-
shouldBeNull(
91-
"gl.getParameter(0x96E3 /*PIXEL_LOCAL_STORAGE_ACTIVE_PLANES_WEBGL*/)");
88+
"gl.getParameter(0x96E2 /*PIXEL_LOCAL_STORAGE_ACTIVE_PLANES_WEBGL*/)");
9289
wtu.glErrorShouldBe(gl, gl.INVALID_ENUM, "parameter unknown without enabling the extension");
9390
wtu.glErrorShouldBe(gl, gl.NONE);
9491
}
@@ -101,18 +98,16 @@
10198
wtu.glErrorShouldBe(gl, enabled ? gl.NONE : gl.INVALID_ENUM,
10299
"OES_draw_buffers_indexed not enabled or disabled as expected");
103100
}
104-
if (wtu.getSupportedExtensionWithKnownPrefixes(gl, "EXT_color_buffer_float") !== undefined) {
101+
{
105102
gl.bindRenderbuffer(gl.RENDERBUFFER, gl.createRenderbuffer());
106103
gl.renderbufferStorage(gl.RENDERBUFFER, gl.R32F, 1, 1);
107-
wtu.glErrorShouldBe(gl, enabled ? gl.NONE : gl.INVALID_ENUM,
108-
"EXT_color_buffer_float not enabled or disabled as expected");
104+
wtu.glErrorShouldBe(gl, gl.INVALID_ENUM, "EXT_color_buffer_float not disabled as expected");
109105
gl.bindRenderbuffer(gl.RENDERBUFFER, null);
110106
}
111-
if (wtu.getSupportedExtensionWithKnownPrefixes(gl, "EXT_color_buffer_half_float") !== undefined) {
107+
{
112108
gl.bindRenderbuffer(gl.RENDERBUFFER, gl.createRenderbuffer());
113109
gl.renderbufferStorage(gl.RENDERBUFFER, gl.RG16F, 1, 1);
114-
wtu.glErrorShouldBe(gl, enabled ? gl.NONE : gl.INVALID_ENUM,
115-
"EXT_color_buffer_half_float not enabled or disabled as expected");
110+
wtu.glErrorShouldBe(gl, gl.INVALID_ENUM, "EXT_color_buffer_half_float not disabled as expected");
116111
gl.bindRenderbuffer(gl.RENDERBUFFER, null);
117112
}
118113
}

0 commit comments

Comments
 (0)