summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/glamor_fill.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glamor_fill.c b/src/glamor_fill.c
index 356bddc..e65c909 100644
--- a/src/glamor_fill.c
+++ b/src/glamor_fill.c
@@ -235,7 +235,9 @@ _glamor_solid_boxes(PixmapPtr pixmap, BoxPtr box, int nbox, float *color)
}
glamor_put_vbo_space(screen);
- if (box_cnt == 1)
+ if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP)
+ dispatch->glDrawArrays(GL_QUADS, 0, box_cnt * 4);
+ else if (box_cnt == 1)
dispatch->glDrawArrays(GL_TRIANGLE_FAN, 0, box_cnt * 4);
else
#ifndef GLAMOR_GLES2