Commit f4dfd282 authored by Eric Anholt's avatar Eric Anholt

glamor: Add an assert to catch the previous bug.

Signed-off-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Acked-by: Michel Dänzer's avatarMichel Dänzer <michel.daenzer@amd.com>
parent c268d2fc
......@@ -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--) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment