Bug 1259355 - Practice! Don't load it#02-1; r?JamesCheng
MozReview-Commit-ID: AC00ykvVhzm
--- a/dom/canvas/WebGLFramebuffer.cpp
+++ b/dom/canvas/WebGLFramebuffer.cpp
@@ -635,16 +635,20 @@ WebGLFramebuffer::FramebufferTexture2D(G
if (isTexture2D != isTexTarget2D) {
mContext->ErrorInvalidOperation("framebufferTexture2D: Mismatched"
" texture and texture target.");
return;
}
}
+
+
+
+
RefPtr<WebGLTexture> tex_ = tex; // Bug 1201275
const auto fnAttach = [this, &tex_, texImageTarget, level](GLenum attachment) {
const auto attachPoint = this->GetAttachPoint(attachment);
MOZ_ASSERT(attachPoint);
attachPoint->SetTexImage(tex_, texImageTarget, level);
};