Skip to content

Commit

Permalink
Clarify GLES/WebGL difference with uninitialized compressed textures.
Browse files Browse the repository at this point in the history
Fixes #3686.
  • Loading branch information
kenrussell committed Sep 5, 2024
1 parent eeeb020 commit 98f6ff6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions specs/latest/2.0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4467,6 +4467,19 @@ <h3><a name="GENERIC_TRANSFORM_FEEDBACK_BUFFER">Generic TRANSFORM_FEEDBACK_BUFFE
A similar change was made in OpenGL ES 3.2.
</div>

<h3><a name="UNINITIALIZED_COMPRESSED_TEXTURES">Uninitialized Compressed Textures</a></h3>

<p>
In OpenGL ES 2.0 the specification omitted declaring whether it should be possible to create a
compressed 2D texture with uninitialized data. In WebGL 1.0, this is explicitly disallowed.
</p>
<p>
In OpenGL ES 3.0 it is explicitly allowed to create a compressed 2D texture with uninitialized
data by passing <code>null</code> to <code>glCompressedTexImage2D</code>. In WebGL 2.0,
however, this is still explicitly disallowed. Users can call <code>texStorage2D</code> to work
around this functional difference.
</p>

<!-- ======================================================================================================= -->

<h2>References</h2>
Expand Down

0 comments on commit 98f6ff6

Please sign in to comment.