projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
st/mesa: Remove unneeded texture format terminators.
[mesa.git]
/
src
/
mesa
/
state_tracker
/
st_cb_drawtex.c
diff --git
a/src/mesa/state_tracker/st_cb_drawtex.c
b/src/mesa/state_tracker/st_cb_drawtex.c
index 26443e13698bd101d13d344c07f3013fb45418ff..86ceb9d78b32abc294efb7203db3c95abfa8cab6 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_drawtex.c
+++ b/
src/mesa/state_tracker/st_cb_drawtex.c
@@
-139,6
+139,7
@@
st_DrawTex(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
/* create the vertex buffer */
vbuffer = pipe_buffer_create(pipe->screen, PIPE_BIND_VERTEX_BUFFER,
/* create the vertex buffer */
vbuffer = pipe_buffer_create(pipe->screen, PIPE_BIND_VERTEX_BUFFER,
+ PIPE_USAGE_STREAM,
numAttribs * 4 * 4 * sizeof(GLfloat));
/* load vertex buffer */
numAttribs * 4 * 4 * sizeof(GLfloat));
/* load vertex buffer */
@@
-265,7
+266,7
@@
st_DrawTex(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
}
}
- util_draw_vertex_buffer(pipe, vbuffer,
+ util_draw_vertex_buffer(pipe,
cso,
vbuffer,
0, /* offset */
PIPE_PRIM_TRIANGLE_FAN,
4, /* verts */
0, /* offset */
PIPE_PRIM_TRIANGLE_FAN,
4, /* verts */