Skip to content

Commit

Permalink
WebGLRenderer: Fix setRenderTargetTextures(). (mrdoob#23644)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored and qiweicao committed Apr 9, 2024
1 parent 26264b6 commit 6ebf89a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1842,9 +1842,8 @@ function WebGLRenderer( parameters = {} ) {
// are midframe flushes and an external depth buffer. Disable use of the extension.
if ( extensions.has( 'WEBGL_multisampled_render_to_texture' ) === true ) {

console.warn( 'render-to-texture extension was disabled because an external texture was provided' );
renderTarget.useRenderToTexture = false;
renderTarget.useRenderbuffer = true;
console.warn( 'THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided' );
renderTargetProperties.__useRenderToTexture = false;

}

Expand Down

0 comments on commit 6ebf89a

Please sign in to comment.