projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ffd603
)
util: Allow util_draw_texquad to draw quads with non-integer coordinates.
author
Alex Corscadden
<alexc@vmware.com>
Wed, 9 Mar 2011 11:12:09 +0000
(11:12 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 9 Mar 2011 11:16:49 +0000
(11:16 +0000)
src/gallium/auxiliary/util/u_draw_quad.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_draw_quad.c
b/src/gallium/auxiliary/util/u_draw_quad.c
index 0defd9199749fbee49ee70bef6da17c582d19ebf..8ed3b3c09598992aded60ca0bc0fe6f5540bbdbb 100644
(file)
--- 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;
-
uin
t *v = NULL;
+
floa
t *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);