mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 01:27:30 +09:00
[WebGL] Bind framebuffer before DrawBuffers/ReadBuffer selection.
This commit is contained in:
parent
7e02267fd3
commit
88bfb5d5d1
1 changed files with 2 additions and 0 deletions
|
|
@ -1216,6 +1216,7 @@ WebGLFramebuffer::RefreshDrawBuffers() const
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gl->fBindFramebuffer(LOCAL_GL_DRAW_FRAMEBUFFER, mGLName);
|
||||||
gl->fDrawBuffers(driverBuffers.size(), driverBuffers.data());
|
gl->fDrawBuffers(driverBuffers.size(), driverBuffers.data());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1235,6 +1236,7 @@ WebGLFramebuffer::RefreshReadBuffer() const
|
||||||
driverBuffer = mColorReadBuffer->mAttachmentPoint;
|
driverBuffer = mColorReadBuffer->mAttachmentPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gl->fBindFramebuffer(LOCAL_GL_READ_FRAMEBUFFER, mGLName);
|
||||||
gl->fReadBuffer(driverBuffer);
|
gl->fReadBuffer(driverBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue