summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorErdi Chen <erdi@freedesktop.org>2004-06-25 20:31:40 +0000
committerErdi Chen <erdi@freedesktop.org>2004-06-25 20:31:40 +0000
commit74b380b2ec16b387628b4e01f25eca7baf634048 (patch)
tree15de6d95e50dcc87bfed5c4e24db3eb57a56688f /src/mesa/drivers
parentc9a415663ad92a703b5b1e1e70cd41727114b760 (diff)
Corrected a float to ubyte conversion bug with fog enabled.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_dd_vbtmp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_dd_vbtmp.h b/src/mesa/drivers/dri/unichrome/via_dd_vbtmp.h
index 73c9b17d55..20abe57ff0 100644
--- a/src/mesa/drivers/dri/unichrome/via_dd_vbtmp.h
+++ b/src/mesa/drivers/dri/unichrome/via_dd_vbtmp.h
@@ -251,13 +251,12 @@ static void TAG(emit)(GLcontext *ctx,
}
if (DO_FOG) {
- /*UNCLAMPED_FLOAT_TO_UBYTE(v->v.specular.alpha, fog[0][0]);*/
- v->v.specular.alpha = fog[0][0];
+ UNCLAMPED_FLOAT_TO_UBYTE(v->v.specular.alpha, fog[0][0]);
/*=* [DBG] exy : fix lighting on + fog off error *=*/
STRIDE_4F(fog, fog_stride);
}
else {
- v->v.specular.alpha = 0.0;
+ v->v.specular.alpha = 0;
}
if (DO_TEX0) {