summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorAlex Corscadden <[email protected]>2011-03-09 11:12:09 +0000
committerJosé Fonseca <[email protected]>2011-03-09 11:16:49 +0000
commiteb2e8167fa543d12bac91e451838934ebbf0d594 (patch)
tree2c513455f3369611faeca0cdbd214dfe3550adc5 /src/gallium
parent0ffd603e17fd489886b47c5fec4624a589a13c10 (diff)
util: Allow util_draw_texquad to draw quads with non-integer coordinates.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_draw_quad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_draw_quad.c b/src/gallium/auxiliary/util/u_draw_quad.c
index 0defd919974..8ed3b3c0959 100644
--- a/src/gallium/auxiliary/util/u_draw_quad.c
+++ b/src/gallium/auxiliary/util/u_draw_quad.c
@@ -82,7 +82,7 @@ util_draw_texquad(struct pipe_context *pipe, struct cso_context *cso,
uint numAttribs = 2, i, j;
uint vertexBytes = 4 * (4 * numAttribs * sizeof(float));
struct pipe_resource *vbuf = NULL;
- uint *v = NULL;
+ float *v = NULL;
v = MALLOC(vertexBytes);
if (v == NULL)
@@ -121,7 +121,7 @@ util_draw_texquad(struct pipe_context *pipe, struct cso_context *cso,
vbuf = pipe_user_buffer_create(pipe->screen, v, vertexBytes,
PIPE_BIND_VERTEX_BUFFER);
- if (!vbuf)
+ if (!vbuf)
goto out;
util_draw_vertex_buffer(pipe, cso, vbuf, 0, PIPE_PRIM_TRIANGLE_FAN, 4, 2);