summaryrefslogtreecommitdiff
path: root/glamor/glamor_rects.c
diff options
context:
space:
mode:
Diffstat (limited to 'glamor/glamor_rects.c')
-rw-r--r--glamor/glamor_rects.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/glamor/glamor_rects.c b/glamor/glamor_rects.c
index c8c92be17..c378e4a30 100644
--- a/glamor/glamor_rects.c
+++ b/glamor/glamor_rects.c
@@ -126,14 +126,7 @@ glamor_poly_fill_rect_gl(DrawablePtr drawable,
if (glamor_priv->glsl_version >= 130)
glDrawArraysInstanced(GL_TRIANGLE_STRIP, 0, 4, nrect);
else {
- if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP) {
- glDrawArrays(GL_QUADS, 0, nrect * 4);
- } else {
- int i;
- for (i = 0; i < nrect; i++) {
- glDrawArrays(GL_TRIANGLE_FAN, i * 4, 4);
- }
- }
+ glamor_glDrawArrays_GL_QUADS(glamor_priv, nrect);
}
}
}