mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +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) {
|
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