X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fframebuffer.cpp;fp=source%2Fframebuffer.cpp;h=659b14e7d819c9db635fb2e3469c9403fd0affc6;hb=d6ad7be2896403dc507f630ea79d69fe9408dc39;hp=f402b64366e98e4d1cc44e56fb446d14a495d4bf;hpb=e8e31f9203eb6a2a83a30341505b5360e9ffd0fb;p=libs%2Fgl.git diff --git a/source/framebuffer.cpp b/source/framebuffer.cpp index f402b643..659b14e7 100644 --- a/source/framebuffer.cpp +++ b/source/framebuffer.cpp @@ -355,7 +355,7 @@ void Framebuffer::blit_from(const Framebuffer &other, BufferBits bits, bool filt void Framebuffer::bind() const { - if(attachments.empty()) + if(id && attachments.empty()) throw invalid_operation("Framebuffer::bind"); if(set_current(this))