projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i965: directly write wm state to batch
[mesa.git]
/
src
/
mesa
/
swrast
/
s_alpha.c
diff --git
a/src/mesa/swrast/s_alpha.c
b/src/mesa/swrast/s_alpha.c
index 5761bb00b4e55482205f321cb8e6cba47191474c..df2181ba968f2233bf109f4fb1aef54f7b0b6d39 100644
(file)
--- a/
src/mesa/swrast/s_alpha.c
+++ b/
src/mesa/swrast/s_alpha.c
@@
-90,7
+90,7
@@
do { \
* 1 if one or more pixels passed the alpha test.
*/
GLint
* 1 if one or more pixels passed the alpha test.
*/
GLint
-_swrast_alpha_test(const
GL
context *ctx, SWspan *span)
+_swrast_alpha_test(const
struct gl_
context *ctx, SWspan *span)
{
const GLuint n = span->end;
GLubyte *mask = span->array->mask;
{
const GLuint n = span->end;
GLubyte *mask = span->array->mask;
@@
-146,8
+146,8
@@
_swrast_alpha_test(const GLcontext *ctx, SWspan *span)
ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep);
}
else {
ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep);
}
else {
- const GLfloat alphaStep =
span->alphaStep
;
- GLfloat alpha =
span->alpha
;
+ const GLfloat alphaStep =
FixedToFloat(span->alphaStep)
;
+ GLfloat alpha =
FixedToFloat(span->alpha)
;
const GLfloat ref = ctx->Color.AlphaRef;
ALPHA_TEST(alpha, alpha += alphaStep);
}
const GLfloat ref = ctx->Color.AlphaRef;
ALPHA_TEST(alpha, alpha += alphaStep);
}