mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-20 19:50:37 +01:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue