# WebGLMultisampleRenderTarget not support DepthTexture?

**URL:** <https://discourse.threejs.org/t/webglmultisamplerendertarget-not-support-depthtexture/7247>\
**Category:** Questions\
**Tags:** textures\
**Created:** [April 26, 2019, 5:41am UTC](https://discourse.threejs.org/t/webglmultisamplerendertarget-not-support-depthtexture/7247 "2019-04-26T05:41:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dytmh](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dytmh](https://discourse.threejs.org/u/dytmh)\
**Post date:** [April 26, 2019, 5:41am UTC](https://discourse.threejs.org/t/webglmultisamplerendertarget-not-support-depthtexture/7247/1 "2019-04-26T05:41:18Z")

</div>

WebGLMultisampleRenderTarget not support DepthTexture ?

```auto
var depthTexture = new THREE.DepthTexture();
var parameters = {
format: THREE.RGBFormat,
stencilBuffer: false,
depthBuffer: true,
depthTexture: depthTexture
};

var size = renderer.getDrawingBufferSize( new THREE.Vector2() );
var renderTarget = new THREE.WebGLMultisampleRenderTarget( size.width, size.height, parameters );

```

output error:  
[.WebGL-0x7fcad880e800]GL ERROR :GL\_INVALID\_OPERATION : glBufferData: \<- error from previous GL command  
webgl2\_multisampled\_renderbuffers.html:1 [.WebGL-0x7fcad880e800]GL ERROR :GL\_INVALID\_OPERATION : glTexImage2D: \<- error from previous GL command  
254[.WebGL-0x7fcad880e800]GL ERROR :GL\_INVALID\_OPERATION : glFramebufferTexture2D: \<- error from previous GL command

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [April 26, 2019, 9:06am UTC](https://discourse.threejs.org/t/webglmultisamplerendertarget-not-support-depthtexture/7247/2 "2019-04-26T09:06:38Z")

</div>

> [@dytmh](#):
>
> WebGLMultisampleRenderTarget not support DepthTexture ?

No, this use case is not supported so far. Just the basic setup. It’s also not possible use a multisampled `WebGLRenderTargetCube`. You can file a feature request at github so it’s easier for the project to track these open tasks.
