projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9a4156
)
Corrected a float to ubyte conversion bug with fog enabled.
author
Erdi Chen
<erdi@freedesktop.org>
Fri, 25 Jun 2004 20:31:40 +0000
(20:31 +0000)
committer
Erdi Chen
<erdi@freedesktop.org>
Fri, 25 Jun 2004 20:31:40 +0000
(20:31 +0000)
src/mesa/drivers/dri/unichrome/via_dd_vbtmp.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/unichrome/via_dd_vbtmp.h
b/src/mesa/drivers/dri/unichrome/via_dd_vbtmp.h
index 73c9b17d555773fe2d0134d26ec599e4de9f8924..20abe57ff0c7ae3873637ede38ae7cc7099ee75e 100644
(file)
--- 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) {