summaryrefslogtreecommitdiff
path: root/glamor/glamor_transfer.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-07-01 14:46:55 -0700
committerEric Anholt <eric@anholt.net>2015-07-06 12:01:33 -0700
commitf4dfd282d311e5f23631d33e0251bad1854b1ab9 (patch)
treef3270b4f2fb862d0d65aafec4b633668b20ca9c1 /glamor/glamor_transfer.c
parentc268d2fc33318f9ea0019053fa5de18f193e704e (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.c2
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--) {