Closed
Bug 981358
Opened 11 years ago
Closed 11 years ago
"clear: incomplete framebuffer" with only depth texture bound (WEBGL_depth_texture)
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 948002
People
(Reporter: e1860409, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36
Steps to reproduce:
FF 27.01, Windows 7
- Create a WebGL context, requesting WEBGL_depth_texture
- Create a DEPTH_COMPONENT texture, depthTexture
- Create FBO
- Bind FBO
- gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.DEPTH_ATTACHMENT, gl.TEXTURE_2D, depthTexture, 0);
- gl.checkFramebufferStatus(gl.FRAMEBUFFER) returns FRAMEBUFFER_COMPLETE, all good
- gl.clear(gl.DEPTH_BUFFER_BIT) gives the first of many "incomplete framebuffer" errors (more when drawing)
Actual results:
- Error: WebGL: clear: incomplete framebuffer
- Error: WebGL: drawElements: incomplete framebuffer
- Depth texture is unchanged
However, everything works as expected when binding a colour texture to gl.COLOR_ATTACHMENT0
Expected results:
No error, rendering to my shadow map works.
I believe this to be a dupe.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Comment 2•11 years ago
|
||
If you can still reproduce this on Nightly, please post a copy of your about:support, and reopen this bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•