[gl] Use QUADS for drawing fill_rectangles() not TRIFAN

As each rectangle is independent, we need to draw the array using QUADS.
This commit is contained in:
Chris Wilson 2009-07-21 23:38:05 +01:00
parent c3ef0c8d20
commit 5471603b52

View file

@ -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);