From 7f19b195de06b8c7f5b5376590a182c34809c1b8 Mon Sep 17 00:00:00 2001 From: Kelsey G Date: Thu, 5 Sep 2024 09:43:01 -0700 Subject: [PATCH 1/2] UNPACK_COLORSPACE_CONVERSION_WEBGL now applies to all inputs, not just images. Fixes #3683. --- specs/latest/1.0/index.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/specs/latest/1.0/index.html b/specs/latest/1.0/index.html index c86250454..75cee7441 100644 --- a/specs/latest/1.0/index.html +++ b/specs/latest/1.0/index.html @@ -2769,7 +2769,7 @@

Texture objects

First, the source image data is conceptually converted to the color space specified by the unpackColorSpace - attribute, except if the source image data is an HTMLImageElement, and + attribute, except if the the UNPACK_COLORSPACE_CONVERSION_WEBGL pixel storage parameter is set to NONE.

@@ -4125,10 +4125,12 @@

Pixel Storage Parameters

UNPACK_COLORSPACE_CONVERSION_WEBGL of type unsigned long
If set to BROWSER_DEFAULT_WEBGL, then the browser's default colorspace conversion -is applied during subsequent texImage2D and texSubImage2D calls -taking HTMLImageElement. The precise conversions may be specific to both the browser -and file type. If set to NONE, no colorspace conversion is applied. The initial value -is BROWSER_DEFAULT_WEBGL. +is applied during subsequent texImage2D and texSubImage2D calls. +(For example, converting a display-p3 image to srgb) +The precise conversions may be specific to both the browser and file type. +If set to NONE, no colorspace conversion is applied, other than conversion to RGBA. +(For example, a rec709 YUV video is still converted to rec709 RGB data, but not then converted to e.g. srgb RGB data) +The initial value is BROWSER_DEFAULT_WEBGL. From 599148e32dd70c419b4f88b6c257d3ce0aabc8e3 Mon Sep 17 00:00:00 2001 From: Kelsey G Date: Thu, 5 Sep 2024 19:03:47 -0700 Subject: [PATCH 2/2] Restrict to TexImageSource. (exclude e.g. ArrayBufferViews) --- specs/latest/1.0/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specs/latest/1.0/index.html b/specs/latest/1.0/index.html index 75cee7441..5e8d8bfba 100644 --- a/specs/latest/1.0/index.html +++ b/specs/latest/1.0/index.html @@ -4125,8 +4125,10 @@

Pixel Storage Parameters

UNPACK_COLORSPACE_CONVERSION_WEBGL of type unsigned long
If set to BROWSER_DEFAULT_WEBGL, then the browser's default colorspace conversion -is applied during subsequent texImage2D and texSubImage2D calls. -(For example, converting a display-p3 image to srgb) +(e.g. converting a display-p3 image to srgb) +is applied during subsequent texture data upload calls +(e.g. texImage2D and texSubImage2D) that take an argument of TexImageSource. + The precise conversions may be specific to both the browser and file type. If set to NONE, no colorspace conversion is applied, other than conversion to RGBA. (For example, a rec709 YUV video is still converted to rec709 RGB data, but not then converted to e.g. srgb RGB data)