diff --git a/src/Magnum/AbstractFramebuffer.cpp b/src/Magnum/AbstractFramebuffer.cpp index da487f866..44032aef8 100644 --- a/src/Magnum/AbstractFramebuffer.cpp +++ b/src/Magnum/AbstractFramebuffer.cpp @@ -121,7 +121,7 @@ void AbstractFramebuffer::bindImplementationSingle(FramebufferTarget) { state.readBinding = state.drawBinding = _id; /* Binding the framebuffer finally creates it */ - _created = true; + _flags |= ObjectFlag::Created; glBindFramebuffer(GL_FRAMEBUFFER, _id); } #endif @@ -163,7 +163,7 @@ FramebufferTarget AbstractFramebuffer::bindImplementationSingle() { state.readBinding = state.drawBinding = _id; /* Binding the framebuffer finally creates it */ - _created = true; + _flags |= ObjectFlag::Created; glBindFramebuffer(GL_FRAMEBUFFER, _id); }