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

This commit is contained in:
2026-02-04 16:19:57 +08:00
parent cb27ebc576
commit dfaa2c259b
@@ -143,6 +143,7 @@ namespace MobileGL {
void FramebufferObject::SetDrawBuffer(Uint index, FramebufferAttachmentType buffer) {
if (m_drawBuffers[index] == buffer) return;
m_drawBuffers[index] = buffer;
++m_attachmentVersions[static_cast<SizeT>(buffer)];
}
const FramebufferObject::FramebufferAttachmentArray& FramebufferObject::GetDrawBuffers() const {