mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-26 03:02:15 +09:00
[Fix] (MG_State/Framebuffer): bump attachmentVersions on SetDrawBuffer
This commit is contained in:
1 parent
cb27ebc576
commit
dfaa2c259b
1 file changed
+1
@@ -143,6 +143,7 @@ namespace MobileGL {
|
|||||||
void FramebufferObject::SetDrawBuffer(Uint index, FramebufferAttachmentType buffer) {
|
void FramebufferObject::SetDrawBuffer(Uint index, FramebufferAttachmentType buffer) {
|
||||||
if (m_drawBuffers[index] == buffer) return;
|
if (m_drawBuffers[index] == buffer) return;
|
||||||
m_drawBuffers[index] = buffer;
|
m_drawBuffers[index] = buffer;
|
||||||
|
++m_attachmentVersions[static_cast<SizeT>(buffer)];
|
||||||
}
|
}
|
||||||
|
|
||||||
const FramebufferObject::FramebufferAttachmentArray& FramebufferObject::GetDrawBuffers() const {
|
const FramebufferObject::FramebufferAttachmentArray& FramebufferObject::GetDrawBuffers() const {
|
||||||
|
|||||||
Reference in new issue
Block a user