added FogOption to fragment_program struct
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 17 Feb 2004 04:25:24 +0000 (04:25 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 17 Feb 2004 04:25:24 +0000 (04:25 +0000)
src/mesa/main/arbfragparse.c
src/mesa/main/mtypes.h

index 0443862020af92c28edc740e168c2c580476e3dc..bce8732f252448c1fe1fc5049e08cf03e323b374 100644 (file)
@@ -206,6 +206,7 @@ _mesa_parse_arb_fragment_program(GLcontext * ctx, GLenum target,
    program->NumTexInstructions = ap.NumTexInstructions;
    program->NumTexIndirections = ap.NumTexIndirections;
    program->Parameters         = ap.Parameters;
+   program->FogOption          = ap.FogOption;
 
    /* XXX: Parse error. Cleanup things and return */   
    if (retval)
index a8f0edba8b6de37b8f6b32a0b56aebccfd1f9ffc..508a363f16b6f50815853dacffcc363abab2e6ae 100644 (file)
@@ -1571,6 +1571,7 @@ struct fragment_program
    GLuint NumAluInstructions; /**< GL_ARB_fragment_program */
    GLuint NumTexInstructions;
    GLuint NumTexIndirections;
+   GLenum FogOption;
    struct program_parameter_list *Parameters; /**< array [NumParameters] */
 };