Module: Mesa
Branch: master
Commit: 628b52241b13132e2d4065b653befdf81236e651
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=628b52241b13132e2d4065b653befdf81236e651

Author: Brian Paul <[email protected]>
Date:   Fri Jan 23 17:37:21 2009 -0700

i965: init array->Format fields (see bug 19708)

---

 src/mesa/drivers/dri/i965/brw_metaops.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_metaops.c 
b/src/mesa/drivers/dri/i965/brw_metaops.c
index 41bfa2e..84d2243 100644
--- a/src/mesa/drivers/dri/i965/brw_metaops.c
+++ b/src/mesa/drivers/dri/i965/brw_metaops.c
@@ -446,6 +446,7 @@ static void meta_draw_quad(struct intel_context *intel,
    attribs[VERT_ATTRIB_POS] = &pos_array;
    attribs[VERT_ATTRIB_POS]->Ptr = 0;
    attribs[VERT_ATTRIB_POS]->Type = GL_FLOAT;
+   attribs[VERT_ATTRIB_POS]->Format = GL_RGBA;
    attribs[VERT_ATTRIB_POS]->Enabled = 1;
    attribs[VERT_ATTRIB_POS]->Size = 3;
    attribs[VERT_ATTRIB_POS]->StrideB = 3 * sizeof(GLfloat);
@@ -457,6 +458,7 @@ static void meta_draw_quad(struct intel_context *intel,
    attribs[VERT_ATTRIB_COLOR0] = &color_array;
    attribs[VERT_ATTRIB_COLOR0]->Ptr = (const GLubyte *)sizeof(pos);
    attribs[VERT_ATTRIB_COLOR0]->Type = GL_UNSIGNED_BYTE;
+   attribs[VERT_ATTRIB_COLOR0]->Format = GL_RGBA;
    attribs[VERT_ATTRIB_COLOR0]->Enabled = 1;
    attribs[VERT_ATTRIB_COLOR0]->Size = 4;
    attribs[VERT_ATTRIB_COLOR0]->StrideB = 0;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to