From 6c1833e37223edbcb818b6d98bd62058ce14dd86 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Thu, 17 Jun 2004 20:54:46 +0000 Subject: [PATCH] fix tex env mode GL_BLEND for GL_INTENSITY texture formats --- src/mesa/main/texstate.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.30.2