From d6ad7be2896403dc507f630ea79d69fe9408dc39 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 4 Nov 2019 03:55:41 +0200 Subject: [PATCH] Allow system framebuffer to not have attachments --- source/framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.43.0