diff options
author | Xiang, Haihao <[email protected]> | 2008-02-02 00:56:51 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-02-02 00:56:51 +0800 |
commit | ca8d91610f547b9c66f703e07356f6347a121516 (patch) | |
tree | 7a8a7508d7da1e1807c5108f21dbd80de612f95b /src | |
parent | 746db75cfbdd760cb19d2dfd18b628aeb2fc3054 (diff) |
mesa: re-define NEED_SECONDARY_COLOR. fix #14310.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index d7f92c463e5..bb6f3acf062 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -273,8 +273,10 @@ do { \ (CTX)->Light.Model.ColorControl == GL_SEPARATE_SPECULAR_COLOR) \ || (CTX)->Fog.ColorSumEnabled \ || ((CTX)->VertexProgram._Current && \ + ((CTX)->VertexProgram._Current != (CTX)->VertexProgram._TnlProgram) && \ ((CTX)->VertexProgram._Current->Base.InputsRead & VERT_BIT_COLOR1)) \ || ((CTX)->FragmentProgram._Current && \ + ((CTX)->FragmentProgram._Current != (CTX)->FragmentProgram._TexEnvProgram) && \ ((CTX)->FragmentProgram._Current->Base.InputsRead & FRAG_BIT_COL1)) \ ) |