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:
parent
c268d2fc33
commit
f4dfd282d3
|
@ -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--) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user