From: Brian Paul Date: Thu, 28 May 2009 01:24:09 +0000 (-0600) Subject: st/mesa: init Format field of vertex arrays for feedback mode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c13bd7488593263f2c45c136b63114ce8b4602fb;p=mesa.git st/mesa: init Format field of vertex arrays for feedback mode Fixes segfault in glRasterPos() --- 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];