diff options
author | Jeff Gilbert <jgilbert@mozilla.com> | 2021-04-20 12:46:56 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-04-20 12:46:56 +0000 |
commit | 8e63193c701803f5cfade6afbb4ff0e7ad029ff2 (patch) | |
tree | 449d84504e98247f9fe8e92e8029e2e8c2b89a24 /dom/canvas/WebGLFramebuffer.cpp | |
parent | f3c4230348601056aea9b11b202e8f93821b5b3a (diff) | |
download | uxp-8e63193c701803f5cfade6afbb4ff0e7ad029ff2.tar.gz |
[WebGL] Bind framebuffer before DrawBuffers/ReadBuffer selection.
Diffstat (limited to 'dom/canvas/WebGLFramebuffer.cpp')
-rw-r--r-- | dom/canvas/WebGLFramebuffer.cpp | 2 |
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); } |