From: Roland Scheidegger Date: Thu, 17 Jun 2004 20:54:46 +0000 (+0000) Subject: fix tex env mode GL_BLEND for GL_INTENSITY texture formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c1833e37223edbcb818b6d98bd62058ce14dd86;p=mesa.git fix tex env mode GL_BLEND for GL_INTENSITY texture formats --- 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: