fix GL_DOT3_RGBA texture combiner mode in generated fragment programs (bug #11030)
authorRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 3 Jul 2007 12:27:41 +0000 (14:27 +0200)
committerRoland Scheidegger <sroland@tungstengraphics.com>
Tue, 3 Jul 2007 12:27:41 +0000 (14:27 +0200)
src/mesa/main/texenvprogram.c

index 0c6fa82f112f35fd5f699c737e21a00fd7730cf3..1a46c10ffa319f9ba84ece6ea89e0007701dea44 100644 (file)
@@ -871,7 +871,7 @@ emit_texenv(struct texenv_fragment_program *p, GLuint unit)
                          key->unit[unit].OptRGB);
    }
    else if (key->unit[unit].ModeRGB == MODE_DOT3_RGBA_EXT ||
-           key->unit[unit].ModeA == MODE_DOT3_RGBA) {
+           key->unit[unit].ModeRGB == MODE_DOT3_RGBA) {
 
       out = emit_combine( p, dest, WRITEMASK_XYZW, saturate,
                          unit,