i810: use ColorMask[0]
authorBrian Paul <brianp@vmware.com>
Thu, 7 Jan 2010 16:40:08 +0000 (09:40 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 7 Jan 2010 16:40:08 +0000 (09:40 -0700)
src/mesa/drivers/dri/i810/i810ioctl.c

index 623d50c5cbe69990f78e13da3abf5060cb5c827e..c631543d933dc998be7346111f1e1949771badc7 100644 (file)
@@ -51,7 +51,7 @@ static void i810Clear( GLcontext *ctx, GLbitfield mask )
 {
    i810ContextPtr imesa = I810_CONTEXT( ctx );
    __DRIdrawable *dPriv = imesa->driDrawable;
-   const GLuint colorMask = *((GLuint *) &ctx->Color.ColorMask);
+   const GLuint colorMask = *((GLuint *) &ctx->Color.ColorMask[0]);
    drmI810Clear clear;
    unsigned int i;