[Fix] (MG_State/Framebuffer): bump attachmentVersions on SetDrawBuffer

This commit is contained in:
swung0x48 committed 2026-02-04 16:19:57 +08:00
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 {