@@ -361,7 +361,7 @@ class WebGLBackend extends Backend {
361361
362362 // The multisample_render_to_texture extension doesn't work properly if there
363363 // are midframe flushes and an external depth texture.
364- if ( ( this . extensions . has ( 'WEBGL_multisampled_render_to_texture' ) === true ) && renderTarget . autoAllocateDepthBuffer === true && renderTarget . useMultiview === false ) {
364+ if ( ( this . extensions . has ( 'WEBGL_multisampled_render_to_texture' ) === true ) && renderTarget . autoAllocateDepthBuffer === true && renderTarget . multiview === false ) {
365365
366366 console . warn ( 'THREE.WebGLBackend: Render-to-texture extension was disabled because an external texture was provided' ) ;
367367
@@ -2062,7 +2062,7 @@ class WebGLBackend extends Backend {
20622062
20632063 } else {
20642064
2065- if ( this . renderer . xr . useMultiview ( ) ) {
2065+ if ( renderTarget . multiview ) {
20662066
20672067 multiviewExt . framebufferTextureMultisampleMultiviewOVR ( gl . FRAMEBUFFER , attachment , textureData . textureGPU , 0 , samples , 0 , 2 ) ;
20682068
@@ -2099,7 +2099,7 @@ class WebGLBackend extends Backend {
20992099 textureData . renderTarget = descriptor . renderTarget ;
21002100 textureData . cacheKey = cacheKey ; // required for copyTextureToTexture()
21012101
2102- if ( this . renderer . xr . useMultiview ( ) ) {
2102+ if ( renderTarget . multiview ) {
21032103
21042104 multiviewExt . framebufferTextureMultisampleMultiviewOVR ( gl . FRAMEBUFFER , depthStyle , textureData . textureGPU , 0 , samples , 0 , 2 ) ;
21052105
@@ -2151,15 +2151,15 @@ class WebGLBackend extends Backend {
21512151
21522152 // rebind external XR textures
21532153
2154- if ( ( isXRRenderTarget && hasExternalTextures ) || this . renderer . xr . useMultiview ( ) ) {
2154+ if ( ( isXRRenderTarget && hasExternalTextures ) || renderTarget . multiview ) {
21552155
21562156 state . bindFramebuffer ( gl . FRAMEBUFFER , fb ) ;
21572157
21582158 // rebind color
21592159
21602160 const textureData = this . get ( descriptor . textures [ 0 ] ) ;
21612161
2162- if ( this . renderer . xr . useMultiview ( ) ) {
2162+ if ( renderTarget . multiview ) {
21632163
21642164 multiviewExt . framebufferTextureMultisampleMultiviewOVR ( gl . FRAMEBUFFER , gl . COLOR_ATTACHMENT0 , textureData . textureGPU , 0 , samples , 0 , 2 ) ;
21652165
@@ -2187,7 +2187,7 @@ class WebGLBackend extends Backend {
21872187
21882188 const textureData = this . get ( descriptor . depthTexture ) ;
21892189
2190- if ( this . renderer . xr . useMultiview ( ) ) {
2190+ if ( renderTarget . multiview ) {
21912191
21922192 multiviewExt . framebufferTextureMultisampleMultiviewOVR ( gl . FRAMEBUFFER , depthStyle , textureData . textureGPU , 0 , samples , 0 , 2 ) ;
21932193
@@ -2207,7 +2207,7 @@ class WebGLBackend extends Backend {
22072207
22082208 }
22092209
2210- if ( samples > 0 && useMultisampledRTT === false && ! this . renderer . xr . useMultiview ( ) ) {
2210+ if ( samples > 0 && useMultisampledRTT === false && ! renderTarget . multiview ) {
22112211
22122212 if ( msaaFb === undefined ) {
22132213
@@ -2502,7 +2502,7 @@ class WebGLBackend extends Backend {
25022502 */
25032503 _useMultisampledExtension ( renderTarget ) {
25042504
2505- if ( renderTarget . useMultiview === true ) {
2505+ if ( renderTarget . multiview === true ) {
25062506
25072507 return true ;
25082508
0 commit comments