diff options
author | Brian Paul <[email protected]> | 2009-01-14 16:48:54 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-01-14 16:49:24 -0700 |
commit | 0dffd223491765fe572d606c2b10855cb568db7a (patch) | |
tree | 5f8e177fbc507ba695306ed40e315e9a4ca01d89 /src/mesa/drivers/dri/r300/r300_state.c | |
parent | 947d1c5b2a70c0eafa4c408b47607574a2908468 (diff) |
r300: work-around FRAG_BIT_FOGC warning/error
See bug 17929.
Fog doesn't actually work, but the often complained about warning is
silenced.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_state.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_state.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c index 6a5c3633a23..a63dbac3436 100644 --- a/src/mesa/drivers/dri/r300/r300_state.c +++ b/src/mesa/drivers/dri/r300/r300_state.c @@ -1675,6 +1675,13 @@ static void r300SetupRSUnit(GLcontext * ctx) rs_col_count += count; } + if (InputsRead & FRAG_BIT_FOGC) { + /* XXX FIX THIS + * Just turn off the bit for now. + * Need to do something similar to the color/texcoord inputs. + */ + InputsRead &= ~FRAG_BIT_FOGC; + } for (i = 0; i < ctx->Const.MaxTextureUnits; i++) { int swiz; |