From 9186c30fd6a0f4fa0074ccf176fc2eea24709314 Mon Sep 17 00:00:00 2001 From: Kelsey Gilbert Date: Thu, 25 Jul 2024 11:48:24 -0700 Subject: [PATCH] Clarify clear value for depth buffers is 1.0 for invalidateFramebuffer and invalidateSubFramebuffer. (#3664) --- specs/latest/2.0/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/latest/2.0/index.html b/specs/latest/2.0/index.html index 4c4eefdff..55120f036 100644 --- a/specs/latest/2.0/index.html +++ b/specs/latest/2.0/index.html @@ -4076,7 +4076,8 @@

Framebuffer contents after invalidation

In OpenGL ES 3.0, after calling invalidateFramebuffer or invalidateSubFramebuffer, 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)