summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blitter.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2009-12-15 01:11:22 +0100
committerKeith Whitwell <[email protected]>2009-12-15 18:00:48 +0000
commit80e815639459367313cb0c2e5e32d978ed9fcd08 (patch)
tree4fde1b8b184773b01c801626c4afa6920ada6931 /src/gallium/auxiliary/util/u_blitter.c
parent85bf420a78483cf62ebab59af13a7c5a320a4703 (diff)
util/blitter: kill the draw_quad callback
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.c')
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 42efa86e198..895af2c8d00 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -385,20 +385,15 @@ static void blitter_set_texcoords_cube(struct blitter_context_priv *ctx,
static void blitter_draw_quad(struct blitter_context_priv *ctx)
{
- struct blitter_context *blitter = &ctx->blitter;
struct pipe_context *pipe = ctx->pipe;
- if (blitter->draw_quad) {
- blitter->draw_quad(pipe, &ctx->vertices[0][0][0]);
- } else {
- /* write vertices and draw them */
- pipe_buffer_write(pipe->screen, ctx->vbuf,
- 0, sizeof(ctx->vertices), ctx->vertices);
+ /* write vertices and draw them */
+ pipe_buffer_write(pipe->screen, ctx->vbuf,
+ 0, sizeof(ctx->vertices), ctx->vertices);
- util_draw_vertex_buffer(ctx->pipe, ctx->vbuf, 0, PIPE_PRIM_TRIANGLE_FAN,
- 4, /* verts */
- 2); /* attribs/vert */
- }
+ util_draw_vertex_buffer(pipe, ctx->vbuf, 0, PIPE_PRIM_TRIANGLE_FAN,
+ 4, /* verts */
+ 2); /* attribs/vert */
}
static INLINE