Skip to content

Commit

Permalink
Clarify clear value for depth buffers is 1.0 for invalidateFramebuffe…
Browse files Browse the repository at this point in the history
…r and invalidateSubFramebuffer. (#3664)
  • Loading branch information
kdashg committed Jul 25, 2024
1 parent 2d0e7f8 commit 9186c30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion specs/latest/2.0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4076,7 +4076,8 @@ <h3>Framebuffer contents after invalidation</h3>
<p>
In OpenGL ES 3.0, after calling <code>invalidateFramebuffer</code> or <code>invalidateSubFramebuffer</code>,
the affected region's contents become effectively undefined. In WebGL 2.0, it is required for the contents
to either stay unchanged or become all 0.
to either stay unchanged or become cleared to their default values.
(e.g. 0 for colors and stencil, and 1.0 for depth)
</p>

<div class="note">
Expand Down

0 comments on commit 9186c30

Please sign in to comment.