Skip to content

Commit

Permalink
WebGLRenderer: Removed renderTarget.is3D()
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 6, 2021
1 parent 599f6ef commit effe04b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,14 @@ function WebGLRenderer( parameters ) {

if ( renderTarget ) {

isRenderTarget3D = renderTarget.is3D();
const texture = renderTarget.texture;

if ( texture.isDataTexture3D || texture.isDataTexture2DArray ) {

isRenderTarget3D = true;

}

const __webglFramebuffer = properties.get( renderTarget ).__webglFramebuffer;

if ( renderTarget.isWebGLCubeRenderTarget ) {
Expand Down

0 comments on commit effe04b

Please sign in to comment.