mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 12:18:30 +09:00
[Fix] (MG_State/Framebuffer): bump attachmentVersions on SetDrawBuffer
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user