diff options
author | Eric Anholt <eric@anholt.net> | 2015-07-01 14:46:55 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2015-07-06 12:01:33 -0700 |
commit | f4dfd282d311e5f23631d33e0251bad1854b1ab9 (patch) | |
tree | f3270b4f2fb862d0d65aafec4b633668b20ca9c1 /glamor/glamor_transfer.c | |
parent | c268d2fc33318f9ea0019053fa5de18f193e704e (diff) |
glamor: Add an assert to catch the previous bug.
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'glamor/glamor_transfer.c')
-rw-r--r-- | glamor/glamor_transfer.c | 2 |
1 files changed, 2 insertions, 0 deletions
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--) { |