glamor: Use GL_FRAMEBUFFER instead of GL_READ_FRAMEBUFFER
The latter might not be available on GLES2.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@ubuntu.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit c1f35c3d86
)
This commit is contained in:
parent
6a37a33e4c
commit
3bfeccf88a
|
@ -226,7 +226,7 @@ glamor_get_spans_gl(DrawablePtr drawable, int wmax,
|
|||
BoxPtr box = glamor_pixmap_box_at(pixmap_priv, box_x, box_y);
|
||||
glamor_pixmap_fbo *fbo = glamor_pixmap_fbo_at(pixmap_priv, box_x, box_y);
|
||||
|
||||
glBindFramebuffer(GL_READ_FRAMEBUFFER, fbo->fb);
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, fbo->fb);
|
||||
glPixelStorei(GL_PACK_ALIGNMENT, 4);
|
||||
|
||||
d = dst;
|
||||
|
|
|
@ -186,7 +186,7 @@ glamor_download_boxes(PixmapPtr pixmap, BoxPtr in_boxes, int in_nbox,
|
|||
BoxPtr boxes = in_boxes;
|
||||
int nbox = in_nbox;
|
||||
|
||||
glBindFramebuffer(GL_READ_FRAMEBUFFER, fbo->fb);
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, fbo->fb);
|
||||
|
||||
while (nbox--) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue