st/mesa: init Format field of vertex arrays for feedback mode
authorBrian Paul <brianp@vmware.com>
Thu, 28 May 2009 01:24:09 +0000 (19:24 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 28 May 2009 01:24:09 +0000 (19:24 -0600)
Fixes segfault in glRasterPos()

src/mesa/state_tracker/st_cb_rasterpos.c

index 7a9c50b3fc26559fa85208c1b4fd4d7a2bc677dd..3bcccd0df46dc16da818a28e55f2317e04d2cbf2 100644 (file)
@@ -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];