fix tex env mode GL_BLEND for GL_INTENSITY texture formats
authorRoland Scheidegger <rscheidegger@gmx.ch>
Thu, 17 Jun 2004 20:54:46 +0000 (20:54 +0000)
committerRoland Scheidegger <rscheidegger@gmx.ch>
Thu, 17 Jun 2004 20:54:46 +0000 (20:54 +0000)
src/mesa/main/texstate.c

index de247ebcad0d6e4557b061f21605d9f1216da770..0f3eea6f335c176fea7d1a27d2cd3b711025d077 100644 (file)
@@ -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: