|
|
|
|
@ -98,12 +98,7 @@ DefaultFramebuffer& DefaultFramebuffer::mapForRead(const ReadAttachment attachme
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DefaultFramebuffer::invalidate(Containers::ArrayView<const InvalidationAttachment> attachments) { |
|
|
|
|
/** @todo C++14: use VLA to avoid heap allocation */ |
|
|
|
|
Containers::Array<GLenum> _attachments(attachments.size()); |
|
|
|
|
for(std::size_t i = 0; i != attachments.size(); ++i) |
|
|
|
|
_attachments[i] = GLenum(*(attachments.begin()+i)); |
|
|
|
|
|
|
|
|
|
Context::current().state().framebuffer.invalidateImplementation(*this, attachments.size(), _attachments); |
|
|
|
|
Context::current().state().framebuffer.invalidateImplementation(*this, attachments.size(), reinterpret_cast<const GLenum*>(attachments.data())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DefaultFramebuffer::invalidate(std::initializer_list<InvalidationAttachment> attachments) { |
|
|
|
|
@ -113,12 +108,7 @@ void DefaultFramebuffer::invalidate(std::initializer_list<InvalidationAttachment
|
|
|
|
|
|
|
|
|
|
#ifndef MAGNUM_TARGET_GLES2 |
|
|
|
|
void DefaultFramebuffer::invalidate(const Containers::ArrayView<const InvalidationAttachment> attachments, const Range2Di& rectangle) { |
|
|
|
|
/** @todo C++14: use VLA to avoid heap allocation */ |
|
|
|
|
Containers::Array<GLenum> _attachments(attachments.size()); |
|
|
|
|
for(std::size_t i = 0; i != attachments.size(); ++i) |
|
|
|
|
_attachments[i] = GLenum(*(attachments.begin()+i)); |
|
|
|
|
|
|
|
|
|
Context::current().state().framebuffer.invalidateSubImplementation(*this, attachments.size(), _attachments, rectangle); |
|
|
|
|
Context::current().state().framebuffer.invalidateSubImplementation(*this, attachments.size(), reinterpret_cast<const GLenum*>(attachments.data()), rectangle); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void DefaultFramebuffer::invalidate(std::initializer_list<InvalidationAttachment> attachments, const Range2Di& rectangle) { |
|
|
|
|
|