gallium/tests/trivial: updates for util_draw_vertex_buffer changes
authorAndreas Boll <andreas.boll.dev@gmail.com>
Tue, 20 Nov 2012 20:04:25 +0000 (21:04 +0100)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Tue, 27 Nov 2012 18:00:48 +0000 (19:00 +0100)
Fixes build error with configure option --enable-gallium-tests
introduced in e73bf3b805de78299f1a652668ba4e6eab9bac94

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/tests/trivial/quad-tex.c
src/gallium/tests/trivial/tri.c

index 6162dd0ae72ed28170ba277a0ca08e14196f0b00..f0c30d9d35ba3612096f07a5e02a3ee924e2efce 100644 (file)
@@ -329,7 +329,7 @@ static void draw(struct program *p)
        cso_set_vertex_elements(p->cso, 2, p->velem);
 
        util_draw_vertex_buffer(p->pipe, p->cso,
-                               p->vbuf, 0,
+                               p->vbuf, 0, 0,
                                PIPE_PRIM_QUADS,
                                4,  /* verts */
                                2); /* attribs/vert */
index f3e1e944154c7a16bc5d962799c801dcfff5e43d..f9b4696abef6ee8aca9e6135b39e7cd6668d0a59 100644 (file)
@@ -262,7 +262,7 @@ static void draw(struct program *p)
        cso_set_vertex_elements(p->cso, 2, p->velem);
 
        util_draw_vertex_buffer(p->pipe, p->cso,
-                               p->vbuf, 0,
+                               p->vbuf, 0, 0,
                                PIPE_PRIM_TRIANGLES,
                                3,  /* verts */
                                2); /* attribs/vert */