Bug 1316327 - Iterate through defined ColorBuffers from mResolvedCompleteData instead of mColorBuffers. r=jgilbert
authorChih-Yi Leu <cleu@mozilla.com>
Tue, 29 Nov 2016 21:47:00 -0500
changeset 325019 57509edabda29d29fb27f65a9874ab1cf798484d
parent 325018 f8857178de4065114a10547cf183ea451f2a3141
child 325020 c5006c51caf6db6222296f8722f0b30438293f7b
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersjgilbert
bugs1316327
milestone53.0a1
Bug 1316327 - Iterate through defined ColorBuffers from mResolvedCompleteData instead of mColorBuffers. r=jgilbert
dom/canvas/WebGLFramebuffer.cpp
--- a/dom/canvas/WebGLFramebuffer.cpp
+++ b/dom/canvas/WebGLFramebuffer.cpp
@@ -1628,18 +1628,18 @@ WebGLFramebuffer::BlitFramebuffer(WebGLC
     };
 
     if (dstFB) {
         dstSampleBuffers = dstFB->mResolvedCompleteData->hasSampleBuffers;
 
         dstDepthFormat = fnGetFormat(dstFB->mResolvedCompleteData->depthBuffer);
         dstStencilFormat = fnGetFormat(dstFB->mResolvedCompleteData->stencilBuffer);
 
-        for (const auto& drawBuffer : dstFB->mColorDrawBuffers) {
-            fnCheckColorFormat(drawBuffer->Format()->format);
+        for (const auto& drawBufferEntry : dstFB->mResolvedCompleteData->drawSet) {
+            fnCheckColorFormat(drawBufferEntry.mRef.Format()->format);
         }
     } else {
         dstSampleBuffers = bool(gl->Screen()->Samples());
 
         const webgl::FormatInfo* dstColorFormat;
         GetBackbufferFormats(webgl, &dstColorFormat, &dstDepthFormat, &dstStencilFormat);
 
         fnCheckColorFormat(dstColorFormat);