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>
This commit is contained in:
Eric Anholt 2015-07-01 14:46:55 -07:00
parent c268d2fc33
commit f4dfd282d3

View File

@ -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--) {