summaryrefslogtreecommitdiff
path: root/dom/canvas/WebGLFramebuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/canvas/WebGLFramebuffer.cpp')
-rw-r--r--dom/canvas/WebGLFramebuffer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/canvas/WebGLFramebuffer.cpp b/dom/canvas/WebGLFramebuffer.cpp
index 7a1d4dbd9e..cbba648bd1 100644
--- a/dom/canvas/WebGLFramebuffer.cpp
+++ b/dom/canvas/WebGLFramebuffer.cpp
@@ -1216,6 +1216,7 @@ WebGLFramebuffer::RefreshDrawBuffers() const
}
}
+ gl->fBindFramebuffer(LOCAL_GL_DRAW_FRAMEBUFFER, mGLName);
gl->fDrawBuffers(driverBuffers.size(), driverBuffers.data());
}
@@ -1235,6 +1236,7 @@ WebGLFramebuffer::RefreshReadBuffer() const
driverBuffer = mColorReadBuffer->mAttachmentPoint;
}
+ gl->fBindFramebuffer(LOCAL_GL_READ_FRAMEBUFFER, mGLName);
gl->fReadBuffer(driverBuffer);
}