Corrected a float to ubyte conversion bug with fog enabled.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user