From: Brian Paul Date: Tue, 17 Feb 2004 04:25:24 +0000 (+0000) Subject: added FogOption to fragment_program struct X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5cd79f9267c5ce71d9fc3355ab0ba8fe5fdf636a;p=mesa.git added FogOption to fragment_program struct --- diff --git a/src/mesa/main/arbfragparse.c b/src/mesa/main/arbfragparse.c index 0443862020a..bce8732f252 100644 --- a/src/mesa/main/arbfragparse.c +++ b/src/mesa/main/arbfragparse.c @@ -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) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index a8f0edba8b6..508a363f16b 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -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] */ };