From 5471603b527ecf43aaa72665d47929a1038aa642 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 21 Jul 2009 23:38:05 +0100 Subject: [PATCH] [gl] Use QUADS for drawing fill_rectangles() not TRIFAN As each rectangle is independent, we need to draw the array using QUADS. --- src/cairo-gl-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c index 695b24504..6e605f421 100644 --- a/src/cairo-gl-surface.c +++ b/src/cairo-gl-surface.c @@ -1485,7 +1485,7 @@ _cairo_gl_surface_fill_rectangles (void *abstract_surface, glEnableClientState (GL_VERTEX_ARRAY); glColorPointer (4, GL_FLOAT, sizeof (GLfloat)*4, colors); glEnableClientState (GL_COLOR_ARRAY); - glDrawArrays (GL_TRIANGLE_FAN, 0, 4 * num_rects); + glDrawArrays (GL_QUADS, 0, 4 * num_rects); glDisableClientState (GL_COLOR_ARRAY); glDisableClientState (GL_VERTEX_ARRAY);