From f4dfd282d311e5f23631d33e0251bad1854b1ab9 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 1 Jul 2015 14:46:55 -0700 Subject: [PATCH] glamor: Add an assert to catch the previous bug. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Anholt Acked-by: Michel Dänzer --- glamor/glamor_transfer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glamor/glamor_transfer.c b/glamor/glamor_transfer.c index aa5e8616e..155d7e0fa 100644 --- a/glamor/glamor_transfer.c +++ b/glamor/glamor_transfer.c @@ -186,6 +186,8 @@ glamor_download_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox, BoxPtr boxes = in_boxes; int nbox = in_nbox; + /* This should not be called on GLAMOR_FBO_NO_FBO-allocated pixmaps. */ + assert(fbo->fb); glBindFramebuffer(GL_FRAMEBUFFER, fbo->fb); while (nbox--) {