mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 14:38:09 +02:00
glamor: Add an assert about an invariant the upload code relies on.
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Markus Wick <markus@selfnet.de>
This commit is contained in:
parent
7eb2bafe22
commit
64146e4560
1 changed files with 1 additions and 0 deletions
|
|
@ -725,6 +725,7 @@ __glamor_upload_pixmap_to_texture(PixmapPtr pixmap, unsigned int *tex,
|
|||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
|
||||
|
||||
assert(pbo || bits != 0);
|
||||
if (bits == NULL)
|
||||
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, pbo);
|
||||
if (non_sub)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue