glamor: Only fallbac glamor_setspan when we are using gles2.

Signed-off-by: Zhigang Gong <zhigang.gong@gmail.com>
This commit is contained in:
Zhigang Gong 2011-08-11 15:35:26 -04:00 committed by Zhigang Gong
parent 667d65534d
commit 5cbb2a4ca0

View File

@ -36,6 +36,7 @@ glamor_set_spans(DrawablePtr drawable, GCPtr gc, char *src,
DDXPointPtr points, int *widths, int n, int sorted)
{
PixmapPtr dest_pixmap = glamor_get_drawable_pixmap(drawable);
glamor_screen_private *glamor_priv;
GLenum format, type;
int no_alpha, i;
uint8_t *drawpixels_src = (uint8_t *)src;
@ -43,8 +44,10 @@ glamor_set_spans(DrawablePtr drawable, GCPtr gc, char *src,
BoxRec *pbox;
int x_off, y_off;
glamor_priv = glamor_get_screen_private(drawable->pScreen);
goto fail;
if (glamor_priv->gl_flavor == GLAMOR_GL_ES2)
goto fail;
if (glamor_get_tex_format_type_from_pixmap(dest_pixmap,
&format,