summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-27 19:24:09 -0600
committerBrian Paul <brianp@vmware.com>2009-05-27 19:24:09 -0600
commitc13bd7488593263f2c45c136b63114ce8b4602fb (patch)
tree715a4c26d64b4cbde27a7ae31c893355e7daf44e /src
parent8ec6e036792decf5149a209e51cb5e93ccc5c754 (diff)
st/mesa: init Format field of vertex arrays for feedback mode
Fixes segfault in glRasterPos()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_rasterpos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c
index 7a9c50b3fc..3bcccd0df4 100644
--- a/src/mesa/state_tracker/st_cb_rasterpos.c
+++ b/src/mesa/state_tracker/st_cb_rasterpos.c
@@ -197,6 +197,7 @@ new_draw_rastpos_stage(GLcontext *ctx, struct draw_context *draw)
for (i = 0; i < Elements(rs->array); i++) {
rs->array[i].Size = 4;
rs->array[i].Type = GL_FLOAT;
+ rs->array[i].Format = GL_RGBA;
rs->array[i].Stride = 0;
rs->array[i].StrideB = 0;
rs->array[i].Ptr = (GLubyte *) ctx->Current.Attrib[i];