Skip to content

Commit 234a56d

Browse files
authored
Merge pull request #257 from cabanier/texture-clear
fixed small issue in layout algo and in clearing of opaque textures
2 parents 56d6baa + 8e32d5c commit 234a56d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎webxrlayers-1.bs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ An [=opaque texture=] functions identically to a standard {{WebGLTexture}} with
798798
- An [=opaque texture=] MUST behave as though it was allocated with [=texStorage2D=] or [=texStorage3D=], as appropriate, even when using a WebGL 1.0 context.
799799
- A call to {{deleteTexture}} with an [=opaque texture=] MUST generate an {{INVALID_OPERATION}} error.
800800

801-
The buffers attached to an [=opaque texture=] MUST be cleared to the values in the table below prior to the processing of each [=XR animation frame=].
801+
The buffers attached to an [=opaque texture=] MUST be cleared to the values in the table below during the processing of the first call to {{XRWebGLBinding/getViewSubImage()}} or {{XRWebGLBinding/getSubImage()}} in each [=XR animation frame=].
802802

803803
<table class="tg">
804804
<thead>
@@ -1097,7 +1097,7 @@ To <dfn>determine the layout attribute</dfn> using an {{XRTextureType}} |texture
10971097
1. If |layout| is {{XRLayerLayout/"default"}}, run the following steps:
10981098
1. If the size of [=list of views=] is <code>1</code>, return {{XRLayerLayout/"mono"}} and abort these steps.
10991099
1. If |textureType| is {{"texture-array"}}, return |layout| and abort these steps.
1100-
1. If |layout| is {{XRLayerLayout/"default"}} or {{XRLayerLayout/"stereo"}}, run the following steps:
1100+
1. If |layout| is {{XRLayerLayout/"default"}} or {{XRLayerLayout/"stereo"}} and |textureType| is {{"texture"}}, run the following steps:
11011101
1. If the user agent prefers {{XRLayerLayout/"stereo-left-right"}} layout, return {{XRLayerLayout/"stereo-left-right"}} and abort these steps.
11021102
1. If the user agent prefers {{XRLayerLayout/"stereo-top-bottom"}} layout, return {{XRLayerLayout/"stereo-top-bottom"}} and abort these steps.
11031103
1. return |layout|.

0 commit comments

Comments
 (0)