Corrected a float to ubyte conversion bug with fog enabled.

This commit is contained in:
Erdi Chen
2004-06-25 20:31:40 +00:00
parent c9a415663a
commit 74b380b2ec
@@ -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) {