A few bugs 1) in DEPTH_STENCIL_ATTACHMENT we put DEPTH_STENCIL 2) we should always do the re-attachments after removing an attachment buffer (either through framebufferRenderbuffer/framebufferTexture using a null buffer or deleteRenderbuffer/deleteTexture) due to the depth/stencil/depth_stencil conflicts 3) getParameter(DEPTH_BITS/STENCIL_BITS) bug: right now we assume it's always from drawing buffer
Created attachment 148185 [details] Patch
Test change will be added in a separate patch. This is because likely this patch needs to be merged back to chrome M21, and separating the tests change in another patch will reduce the possibility of conflicts.
Comment on attachment 148185 [details] Patch Looks good. I understand that this is being checked in separately from an updated version of the framebuffer-object-attachment.html layout test to make it easier to backport this fix; let's please update that test and its expectations ASAP though. r=me
Committed r120636: <http://trac.webkit.org/changeset/120636>