projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ec6e03
)
st/mesa: init Format field of vertex arrays for feedback mode
author
Brian Paul
<brianp@vmware.com>
Thu, 28 May 2009 01:24:09 +0000
(19:24 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_rasterpos.c
b/src/mesa/state_tracker/st_cb_rasterpos.c
index 7a9c50b3fc26559fa85208c1b4fd4d7a2bc677dd..3bcccd0df46dc16da818a28e55f2317e04d2cbf2 100644
(file)
--- 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];