projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37a64ba
)
mesa: fix ColorMask array index in _mesa_init_driver_state()
author
Brian Paul
<brianp@vmware.com>
Thu, 11 Aug 2011 14:58:08 +0000
(08:58 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 11 Aug 2011 15:04:48 +0000
(09:04 -0600)
This doesn't really make any difference because all the colormasks
are the same upon context set-up, but it makes more sense.
src/mesa/drivers/common/driverfuncs.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/common/driverfuncs.c
b/src/mesa/drivers/common/driverfuncs.c
index 76630264bf78255a5ff51d66036fcc13364dcd89..70f8727a092badfa6e92589ef6ae9d20d4e908d8 100644
(file)
--- a/
src/mesa/drivers/common/driverfuncs.c
+++ b/
src/mesa/drivers/common/driverfuncs.c
@@
-248,10
+248,10
@@
_mesa_init_driver_state(struct gl_context *ctx)
GLuint i;
for (i = 0; i < ctx->Const.MaxDrawBuffers; i++) {
ctx->Driver.ColorMaskIndexed(ctx, i,
- ctx->Color.ColorMask[
0
][RCOMP],
- ctx->Color.ColorMask[
0
][GCOMP],
- ctx->Color.ColorMask[
0
][BCOMP],
- ctx->Color.ColorMask[
0
][ACOMP]);
+ ctx->Color.ColorMask[
i
][RCOMP],
+ ctx->Color.ColorMask[
i
][GCOMP],
+ ctx->Color.ColorMask[
i
][BCOMP],
+ ctx->Color.ColorMask[
i
][ACOMP]);
}
}
else {