summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-06-22 08:12:10 -0600
committerBrian Paul <[email protected]>2011-06-22 08:12:10 -0600
commit3c95ff209f72bacd1b5807c97e1dee079e9206b3 (patch)
treebeb72cdb2914a96c1a4619c7033d599d77a3be91 /src/mesa/main
parent79dddedfd197d089ccb1c6d8b5b7d38583493ac5 (diff)
mesa: update comments in update_program_enables()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/state.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 59a4e161bff..4389415b048 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -192,7 +192,10 @@ update_arrays( struct gl_context *ctx )
static void
update_program_enables(struct gl_context *ctx)
{
- /* These _Enabled flags indicate if the program is enabled AND valid. */
+ /* These _Enabled flags indicate if the user-defined ARB/NV vertex/fragment
+ * program is enabled AND valid. Similarly for ATI fragment shaders.
+ * GLSL shaders not relevant here.
+ */
ctx->VertexProgram._Enabled = ctx->VertexProgram.Enabled
&& ctx->VertexProgram.Current->Base.Instructions;
ctx->FragmentProgram._Enabled = ctx->FragmentProgram.Enabled