Bug 1316327 - Iterate through defined ColorBuffers from mResolvedCompleteData instead of mColorBuffers. r=jgilbert a=gchang
authorChih-Yi Leu <cleu@mozilla.com>
Tue, 29 Nov 2016 21:47:00 -0500
changeset 359111 6d12cc5b5087b89f3e316f0ab47338799d562601
parent 359110 49f9cf06deef721ca6aaa017b5103101e8dde5de
child 359112 5b85d13c47da1b65eca8694f891fdfe2b271bc07
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert, gchang
bugs1316327
milestone51.0
Bug 1316327 - Iterate through defined ColorBuffers from mResolvedCompleteData instead of mColorBuffers. r=jgilbert a=gchang
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);