summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstate.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2004-06-17 20:54:46 +0000
committerRoland Scheidegger <[email protected]>2004-06-17 20:54:46 +0000
commit6c1833e37223edbcb818b6d98bd62058ce14dd86 (patch)
treefb677b32b6b90239ecc61dee2ca369f20201a2b2 /src/mesa/main/texstate.c
parentfb75ca1b65e5fe8d099c29dc984ad42cbe269447 (diff)
fix tex env mode GL_BLEND for GL_INTENSITY texture formats
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r--src/mesa/main/texstate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index de247ebcad0..0f3eea6f335 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -253,6 +253,8 @@ calculate_derived_texenv( struct gl_tex_env_combine_state *state,
break;
case GL_INTENSITY:
mode_a = GL_INTERPOLATE;
+ state->SourceA[0] = GL_CONSTANT;
+ state->OperandA[2] = GL_SRC_ALPHA;
/* FALLTHROUGH */
case GL_LUMINANCE:
case GL_RGB: