Skip to content

Commit 0f26fbc

Browse files
committed
Change composition disabled to be implicit based on session type
1 parent a7d8e35 commit 0f26fbc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

index.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,6 @@ typedef (WebGLRenderingContext or
15481548
WebGL2RenderingContext) XRWebGLRenderingContext;
15491549

15501550
dictionary XRWebGLLayerInit {
1551-
boolean compositionDisabled = false;
15521551
boolean antialias = true;
15531552
boolean depth = true;
15541553
boolean stencil = false;
@@ -1595,7 +1594,13 @@ The <dfn constructor for="XRWebGLLayer">XRWebGLLayer(|session|, |context|, |laye
15951594
<dt> Otherwise
15961595
<dd> Initialize |layer|'s {{XRWebGLLayer/ignoreDepthValues}} to <code>true</code>
15971596
</dl>
1598-
1. Initialize |layer|'s [=XRWebGLLayer/composition disabled=] boolean to |layerInit|'s {{XRWebGLLayerInit/compositionDisabled}}.
1597+
1. Initialize |layer|'s [=XRWebGLLayer/composition disabled=] boolean as follows:
1598+
<dl class="switch">
1599+
<dt> If |session| is an [=immersive session=]
1600+
<dd> Initialize |layer|'s [=XRWebGLLayer/composition disabled=] boolean to <code>false</code>
1601+
<dt> Otherwise
1602+
<dd> Initialize |layer|'s [=XRWebGLLayer/composition disabled=] to <code>true</code>
1603+
</dl>
15991604
1. <dl class="switch">
16001605
<dt> If |layer|'s [=XRWebGLLayer/composition disabled=] boolean is <code>false</code>:
16011606
<dd>
@@ -1614,7 +1619,7 @@ The <dfn constructor for="XRWebGLLayer">XRWebGLLayer(|session|, |context|, |laye
16141619

16151620
</div>
16161621

1617-
Note: When a {{XRWebGLLayerInit}}'s {{XRWebGLLayerInit/compositionDisabled}} is set to <code>true</code> all other values on the {{XRWebGLLayerInit}} object are ignored, since the {{WebGLRenderingContext}}'s default framebuffer was already allocated using the context's [=actual context parameters=] and cannot be overridden.
1622+
Note: If a {{XRWebGLLayer}}'s {{XRWebGLLayerInit/composition disabled}} boolean is set to <code>true</code> all values on the {{XRWebGLLayerInit}} object are ignored, since the {{WebGLRenderingContext}}'s default framebuffer was already allocated using the context's [=actual context parameters=] and cannot be overridden.
16181623

16191624
The <dfn attribute for="XRWebGLLayer">context</dfn> attribute is the {{WebGLRenderingContext}} the {{XRWebGLLayer}} was created with.
16201625

0 commit comments

Comments
 (0)