summaryrefslogtreecommitdiff
path: root/dom/canvas
diff options
context:
space:
mode:
authorJeff Gilbert <jgilbert@mozilla.com>2021-04-20 12:46:56 +0000
committerMoonchild <moonchild@palemoon.org>2021-04-20 12:46:56 +0000
commit88a34442a335ec13a35dfb4a69bcb35fb9440afe (patch)
tree449d84504e98247f9fe8e92e8029e2e8c2b89a24 /dom/canvas
parentcf3b5cb6ccaf2eb1d22ba005e9222b4b13ebcb04 (diff)
downloaduxp-88a34442a335ec13a35dfb4a69bcb35fb9440afe.tar.gz
[WebGL] Bind framebuffer before DrawBuffers/ReadBuffer selection.
Diffstat (limited to 'dom/canvas')
-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);
}