mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 12:48:32 +09:00
[Fix] (MG_State/Framebuffer): properly bump FBO version
This commit is contained in:
@@ -143,7 +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)];
|
||||
BumpAttachmentVersion(buffer);
|
||||
}
|
||||
|
||||
const FramebufferObject::FramebufferAttachmentArray& FramebufferObject::GetDrawBuffers() const {
|
||||
|
||||
@@ -128,7 +128,6 @@ namespace MobileGL {
|
||||
|
||||
private:
|
||||
void BumpAttachmentVersion(FramebufferAttachmentType type);
|
||||
void BumpBufferAttachVersion();
|
||||
|
||||
const Uint m_externalIndex = 0;
|
||||
FramebufferAttachmentObjectArray m_attachmentObjects;
|
||||
|
||||
Reference in New Issue
Block a user