mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-06 09:30:38 +02:00
[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:
parent
c3ef0c8d20
commit
5471603b52
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue