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 0443862..bce8732 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 a8f0edb..508a363 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] */
 };