diff options
author | Brian Paul <[email protected]> | 2009-05-27 19:24:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-05-27 19:24:09 -0600 |
commit | c13bd7488593263f2c45c136b63114ce8b4602fb (patch) | |
tree | 715a4c26d64b4cbde27a7ae31c893355e7daf44e | |
parent | 8ec6e036792decf5149a209e51cb5e93ccc5c754 (diff) |
st/mesa: init Format field of vertex arrays for feedback mode
Fixes segfault in glRasterPos()
-rw-r--r-- | src/mesa/state_tracker/st_cb_rasterpos.c | 1 |
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 7a9c50b3fc2..3bcccd0df46 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]; |